Package org.apache.axiom.util.activation
Class DataHandlerWrapper
- java.lang.Object
-
- javax.activation.DataHandler
-
- org.apache.axiom.util.activation.DataHandlerWrapper
-
- All Implemented Interfaces:
Transferable
public class DataHandlerWrapper extends DataHandler
Base class forDataHandler
wrappers.
-
-
Constructor Summary
Constructors Constructor Description DataHandlerWrapper(DataHandler parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandInfo[]
getAllCommands()
Object
getBean(CommandInfo cmdinfo)
CommandInfo
getCommand(String cmdName)
Object
getContent()
String
getContentType()
DataSource
getDataSource()
InputStream
getInputStream()
String
getName()
OutputStream
getOutputStream()
CommandInfo[]
getPreferredCommands()
Object
getTransferData(DataFlavor flavor)
DataFlavor[]
getTransferDataFlavors()
boolean
isDataFlavorSupported(DataFlavor flavor)
void
setCommandMap(CommandMap commandMap)
void
writeTo(OutputStream os)
-
Methods inherited from class javax.activation.DataHandler
setDataContentHandlerFactory
-
-
-
-
Constructor Detail
-
DataHandlerWrapper
public DataHandlerWrapper(DataHandler parent)
-
-
Method Detail
-
getAllCommands
public CommandInfo[] getAllCommands()
- Overrides:
getAllCommands
in classDataHandler
-
getBean
public Object getBean(CommandInfo cmdinfo)
- Overrides:
getBean
in classDataHandler
-
getCommand
public CommandInfo getCommand(String cmdName)
- Overrides:
getCommand
in classDataHandler
-
getContent
public Object getContent() throws IOException
- Overrides:
getContent
in classDataHandler
- Throws:
IOException
-
getContentType
public String getContentType()
- Overrides:
getContentType
in classDataHandler
-
getDataSource
public DataSource getDataSource()
- Overrides:
getDataSource
in classDataHandler
-
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
getInputStream
in classDataHandler
- Throws:
IOException
-
getName
public String getName()
- Overrides:
getName
in classDataHandler
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Overrides:
getOutputStream
in classDataHandler
- Throws:
IOException
-
getPreferredCommands
public CommandInfo[] getPreferredCommands()
- Overrides:
getPreferredCommands
in classDataHandler
-
getTransferData
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
- Specified by:
getTransferData
in interfaceTransferable
- Overrides:
getTransferData
in classDataHandler
- Throws:
UnsupportedFlavorException
IOException
-
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interfaceTransferable
- Overrides:
getTransferDataFlavors
in classDataHandler
-
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interfaceTransferable
- Overrides:
isDataFlavorSupported
in classDataHandler
-
setCommandMap
public void setCommandMap(CommandMap commandMap)
- Overrides:
setCommandMap
in classDataHandler
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Overrides:
writeTo
in classDataHandler
- Throws:
IOException
-
-