public class WrappedDataHandler extends DataHandler
| Constructor and Description |
|---|
WrappedDataHandler(DataHandler _delegate,
String _contentType)
Constructs a new instance of the WrappedDataHandler.
|
| Modifier and Type | Method and Description |
|---|---|
CommandInfo[] |
getAllCommands() |
Object |
getBean(CommandInfo paramCommandInfo) |
CommandInfo |
getCommand(String paramString) |
Object |
getContent() |
String |
getContentType() |
DataSource |
getDataSource() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
CommandInfo[] |
getPreferredCommands() |
Object |
getTransferData(DataFlavor paramDataFlavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor paramDataFlavor) |
void |
setCommandMap(CommandMap paramCommandMap) |
void |
writeTo(OutputStream paramOutputStream) |
setDataContentHandlerFactorypublic WrappedDataHandler(DataHandler _delegate, String _contentType)
_delegate - the real DataHandler instance being wrapped_contentType - the user-defined contentType associated with the DataHandler instancepublic CommandInfo[] getAllCommands()
getAllCommands in class DataHandlerpublic Object getBean(CommandInfo paramCommandInfo)
getBean in class DataHandlerpublic CommandInfo getCommand(String paramString)
getCommand in class DataHandlerpublic Object getContent() throws IOException
getContent in class DataHandlerIOExceptionpublic String getContentType()
getContentType in class DataHandlerpublic DataSource getDataSource()
getDataSource in class DataHandlerpublic InputStream getInputStream() throws IOException
getInputStream in class DataHandlerIOExceptionpublic String getName()
getName in class DataHandlerpublic OutputStream getOutputStream() throws IOException
getOutputStream in class DataHandlerIOExceptionpublic CommandInfo[] getPreferredCommands()
getPreferredCommands in class DataHandlerpublic Object getTransferData(DataFlavor paramDataFlavor) throws UnsupportedFlavorException, IOException
getTransferData in interface TransferablegetTransferData in class DataHandlerUnsupportedFlavorExceptionIOExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface TransferablegetTransferDataFlavors in class DataHandlerpublic boolean isDataFlavorSupported(DataFlavor paramDataFlavor)
isDataFlavorSupported in interface TransferableisDataFlavorSupported in class DataHandlerpublic void setCommandMap(CommandMap paramCommandMap)
setCommandMap in class DataHandlerpublic void writeTo(OutputStream paramOutputStream) throws IOException
writeTo in class DataHandlerIOExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.