2013-11-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / javax / activation / MimetypesFileTypeMap.h
blob78ab939b780b663769ad35f9b968fae216b8fbec
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_activation_MimetypesFileTypeMap__
5 #define __javax_activation_MimetypesFileTypeMap__
7 #pragma interface
9 #include <javax/activation/FileTypeMap.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace javax
16 namespace activation
18 class MimetypesFileTypeMap;
23 class javax::activation::MimetypesFileTypeMap : public ::javax::activation::FileTypeMap
26 public:
27 MimetypesFileTypeMap();
28 MimetypesFileTypeMap(::java::lang::String *);
29 MimetypesFileTypeMap(::java::io::InputStream *);
30 private:
31 void init(::java::io::Reader *);
32 public:
33 virtual void addMimeTypes(::java::lang::String *);
34 virtual ::java::lang::String * getContentType(::java::io::File *);
35 virtual ::java::lang::String * getContentType(::java::lang::String *);
36 private:
37 void parseFile(::java::util::Map *, ::java::lang::String *);
38 void parseResource(::java::util::Map *, ::java::lang::String *);
39 void parse(::java::util::Map *, ::java::io::Reader *);
40 void parseEntry(::java::util::Map *, ::java::lang::String *);
41 ::java::util::List * getSystemResources(::java::lang::String *);
42 static const jint PROG = 0;
43 static const jint HOME = 1;
44 static const jint SYS = 2;
45 static const jint JAR = 3;
46 static const jint DEF = 4;
47 static ::java::lang::String * DEFAULT_MIME_TYPE;
48 static jboolean debug;
49 JArray< ::java::util::Map * > * __attribute__((aligned(__alignof__( ::javax::activation::FileTypeMap)))) mimetypes;
50 public:
51 static ::java::lang::Class class$;
54 #endif // __javax_activation_MimetypesFileTypeMap__