2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_activation_DataHandler__
5 #define __javax_activation_DataHandler__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
18 namespace datatransfer
34 class DataContentHandler
;
35 class DataContentHandlerFactory
;
42 class javax::activation::DataHandler
: public ::java::lang::Object
46 DataHandler(::javax::activation::DataSource
*);
47 DataHandler(::java::lang::Object
*, ::java::lang::String
*);
48 DataHandler(::java::net::URL
*);
49 virtual ::javax::activation::DataSource
* getDataSource();
50 virtual ::java::lang::String
* getName();
51 virtual ::java::lang::String
* getContentType();
52 virtual ::java::io::InputStream
* getInputStream();
53 virtual void writeTo(::java::io::OutputStream
*);
54 virtual ::java::io::OutputStream
* getOutputStream();
55 virtual JArray
< ::java::awt::datatransfer::DataFlavor
* > * getTransferDataFlavors();
56 virtual jboolean
isDataFlavorSupported(::java::awt::datatransfer::DataFlavor
*);
57 virtual ::java::lang::Object
* getTransferData(::java::awt::datatransfer::DataFlavor
*);
58 virtual void setCommandMap(::javax::activation::CommandMap
*);
59 virtual JArray
< ::javax::activation::CommandInfo
* > * getPreferredCommands();
60 virtual JArray
< ::javax::activation::CommandInfo
* > * getAllCommands();
61 virtual ::javax::activation::CommandInfo
* getCommand(::java::lang::String
*);
62 virtual ::java::lang::Object
* getContent();
63 virtual ::java::lang::Object
* getBean(::javax::activation::CommandInfo
*);
64 static void setDataContentHandlerFactory(::javax::activation::DataContentHandlerFactory
*);
66 ::java::lang::String
* getShortType();
67 ::javax::activation::CommandMap
* getCommandMap();
68 ::javax::activation::DataContentHandler
* getDataContentHandler();
69 static JArray
< ::java::awt::datatransfer::DataFlavor
* > * NO_FLAVORS
;
70 static ::javax::activation::DataContentHandlerFactory
* factory
;
71 ::javax::activation::DataSource
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) dataSource
;
72 ::javax::activation::DataSource
* objDataSource
;
73 ::java::lang::Object
* object
;
74 ::java::lang::String
* objectMimeType
;
75 ::javax::activation::CommandMap
* currentCommandMap
;
76 JArray
< ::java::awt::datatransfer::DataFlavor
* > * transferFlavors
;
77 ::javax::activation::DataContentHandler
* dataContentHandler
;
78 ::javax::activation::DataContentHandler
* factoryDCH
;
79 ::javax::activation::DataContentHandlerFactory
* oldFactory
;
80 ::java::lang::String
* shortType
;
82 static ::java::lang::Class
class$
;
85 #endif // __javax_activation_DataHandler__