public class ByteArrayContentHandler extends Object implements DataContentHandler
| Constructor and Description |
|---|
ByteArrayContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getContent(DataSource dataSource) |
Object |
getTransferData(DataFlavor dataFlavor,
DataSource dataSource) |
DataFlavor[] |
getTransferDataFlavors() |
void |
writeTo(Object object,
String string,
OutputStream outputStream) |
public Object getContent(DataSource dataSource) throws IOException
getContent in interface DataContentHandlerIOExceptionpublic Object getTransferData(DataFlavor dataFlavor, DataSource dataSource) throws UnsupportedFlavorException, IOException
getTransferData in interface DataContentHandlerUnsupportedFlavorExceptionIOExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface DataContentHandlerpublic void writeTo(Object object, String string, OutputStream outputStream) throws IOException
writeTo in interface DataContentHandlerIOExceptionCopyright © 2013 JBoss, by Red Hat. All Rights Reserved.