MimetypesFileTypeMap.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_activation_MimetypesFileTypeMap__
  3. #define __javax_activation_MimetypesFileTypeMap__
  4. #pragma interface
  5. #include <javax/activation/FileTypeMap.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace javax
  10. {
  11. namespace activation
  12. {
  13. class MimetypesFileTypeMap;
  14. }
  15. }
  16. }
  17. class javax::activation::MimetypesFileTypeMap : public ::javax::activation::FileTypeMap
  18. {
  19. public:
  20. MimetypesFileTypeMap();
  21. MimetypesFileTypeMap(::java::lang::String *);
  22. MimetypesFileTypeMap(::java::io::InputStream *);
  23. private:
  24. void init(::java::io::Reader *);
  25. public:
  26. virtual void addMimeTypes(::java::lang::String *);
  27. virtual ::java::lang::String * getContentType(::java::io::File *);
  28. virtual ::java::lang::String * getContentType(::java::lang::String *);
  29. private:
  30. void parseFile(::java::util::Map *, ::java::lang::String *);
  31. void parseResource(::java::util::Map *, ::java::lang::String *);
  32. void parse(::java::util::Map *, ::java::io::Reader *);
  33. void parseEntry(::java::util::Map *, ::java::lang::String *);
  34. ::java::util::List * getSystemResources(::java::lang::String *);
  35. static const jint PROG = 0;
  36. static const jint HOME = 1;
  37. static const jint SYS = 2;
  38. static const jint JAR = 3;
  39. static const jint DEF = 4;
  40. static ::java::lang::String * DEFAULT_MIME_TYPE;
  41. static jboolean debug;
  42. JArray< ::java::util::Map * > * __attribute__((aligned(__alignof__( ::javax::activation::FileTypeMap)))) mimetypes;
  43. public:
  44. static ::java::lang::Class class$;
  45. };
  46. #endif // __javax_activation_MimetypesFileTypeMap__