DataHandler.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_activation_DataHandler__
  3. #define __javax_activation_DataHandler__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. namespace datatransfer
  14. {
  15. class DataFlavor;
  16. }
  17. }
  18. namespace net
  19. {
  20. class URL;
  21. }
  22. }
  23. namespace javax
  24. {
  25. namespace activation
  26. {
  27. class CommandInfo;
  28. class CommandMap;
  29. class DataContentHandler;
  30. class DataContentHandlerFactory;
  31. class DataHandler;
  32. class DataSource;
  33. }
  34. }
  35. }
  36. class javax::activation::DataHandler : public ::java::lang::Object
  37. {
  38. public:
  39. DataHandler(::javax::activation::DataSource *);
  40. DataHandler(::java::lang::Object *, ::java::lang::String *);
  41. DataHandler(::java::net::URL *);
  42. virtual ::javax::activation::DataSource * getDataSource();
  43. virtual ::java::lang::String * getName();
  44. virtual ::java::lang::String * getContentType();
  45. virtual ::java::io::InputStream * getInputStream();
  46. virtual void writeTo(::java::io::OutputStream *);
  47. virtual ::java::io::OutputStream * getOutputStream();
  48. virtual JArray< ::java::awt::datatransfer::DataFlavor * > * getTransferDataFlavors();
  49. virtual jboolean isDataFlavorSupported(::java::awt::datatransfer::DataFlavor *);
  50. virtual ::java::lang::Object * getTransferData(::java::awt::datatransfer::DataFlavor *);
  51. virtual void setCommandMap(::javax::activation::CommandMap *);
  52. virtual JArray< ::javax::activation::CommandInfo * > * getPreferredCommands();
  53. virtual JArray< ::javax::activation::CommandInfo * > * getAllCommands();
  54. virtual ::javax::activation::CommandInfo * getCommand(::java::lang::String *);
  55. virtual ::java::lang::Object * getContent();
  56. virtual ::java::lang::Object * getBean(::javax::activation::CommandInfo *);
  57. static void setDataContentHandlerFactory(::javax::activation::DataContentHandlerFactory *);
  58. private:
  59. ::java::lang::String * getShortType();
  60. ::javax::activation::CommandMap * getCommandMap();
  61. ::javax::activation::DataContentHandler * getDataContentHandler();
  62. static JArray< ::java::awt::datatransfer::DataFlavor * > * NO_FLAVORS;
  63. static ::javax::activation::DataContentHandlerFactory * factory;
  64. ::javax::activation::DataSource * __attribute__((aligned(__alignof__( ::java::lang::Object)))) dataSource;
  65. ::javax::activation::DataSource * objDataSource;
  66. ::java::lang::Object * object;
  67. ::java::lang::String * objectMimeType;
  68. ::javax::activation::CommandMap * currentCommandMap;
  69. JArray< ::java::awt::datatransfer::DataFlavor * > * transferFlavors;
  70. ::javax::activation::DataContentHandler * dataContentHandler;
  71. ::javax::activation::DataContentHandler * factoryDCH;
  72. ::javax::activation::DataContentHandlerFactory * oldFactory;
  73. ::java::lang::String * shortType;
  74. public:
  75. static ::java::lang::Class class$;
  76. };
  77. #endif // __javax_activation_DataHandler__