MailcapCommandMap.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_activation_MailcapCommandMap__
  3. #define __javax_activation_MailcapCommandMap__
  4. #pragma interface
  5. #include <javax/activation/CommandMap.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace javax
  10. {
  11. namespace activation
  12. {
  13. class CommandInfo;
  14. class DataContentHandler;
  15. class MailcapCommandMap;
  16. }
  17. }
  18. }
  19. class javax::activation::MailcapCommandMap : public ::javax::activation::CommandMap
  20. {
  21. public:
  22. MailcapCommandMap();
  23. MailcapCommandMap(::java::lang::String *);
  24. MailcapCommandMap(::java::io::InputStream *);
  25. private:
  26. void init(::java::io::Reader *);
  27. public:
  28. virtual JArray< ::javax::activation::CommandInfo * > * getPreferredCommands(::java::lang::String *);
  29. virtual JArray< ::javax::activation::CommandInfo * > * getAllCommands(::java::lang::String *);
  30. virtual ::javax::activation::CommandInfo * getCommand(::java::lang::String *, ::java::lang::String *);
  31. virtual void addMailcap(::java::lang::String *);
  32. virtual ::javax::activation::DataContentHandler * createDataContentHandler(::java::lang::String *);
  33. virtual JArray< ::java::lang::String * > * getNativeCommands(::java::lang::String *);
  34. private:
  35. void addNativeCommands(::java::util::List *, ::java::util::Map *, ::java::lang::String *);
  36. static ::java::lang::String * nameOf(jint);
  37. void parseFile(jint, ::java::lang::String *);
  38. void parseResource(jint, ::java::lang::String *);
  39. void parse(jint, ::java::io::Reader *);
  40. void parseEntry(jint, ::java::lang::String *);
  41. void addField(::java::util::Map *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  42. ::java::util::Map * getCommands(::java::util::Map *, ::java::lang::String *);
  43. ::java::util::List * getSystemResources(::java::lang::String *);
  44. static const jint PROG = 0;
  45. static const jint HOME = 1;
  46. static const jint SYS = 2;
  47. static const jint JAR = 3;
  48. static const jint DEF = 4;
  49. static jboolean debug;
  50. static const jint NORMAL = 0;
  51. static const jint FALLBACK = 1;
  52. JArray< JArray< ::java::util::Map * > * > * __attribute__((aligned(__alignof__( ::javax::activation::CommandMap)))) mailcaps;
  53. public:
  54. static ::java::lang::Class class$;
  55. };
  56. #endif // __javax_activation_MailcapCommandMap__