2013-11-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / javax / activation / DataHandler.h
blob034bdc1430000ed4ff54c0cc0d796abb090c28a1
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_activation_DataHandler__
5 #define __javax_activation_DataHandler__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace awt
18 namespace datatransfer
20 class DataFlavor;
23 namespace net
25 class URL;
28 namespace javax
30 namespace activation
32 class CommandInfo;
33 class CommandMap;
34 class DataContentHandler;
35 class DataContentHandlerFactory;
36 class DataHandler;
37 class DataSource;
42 class javax::activation::DataHandler : public ::java::lang::Object
45 public:
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 *);
65 private:
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;
81 public:
82 static ::java::lang::Class class$;
85 #endif // __javax_activation_DataHandler__