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 DataContentHandler
IOException
public Object getTransferData(DataFlavor dataFlavor, DataSource dataSource) throws UnsupportedFlavorException, IOException
getTransferData
in interface DataContentHandler
UnsupportedFlavorException
IOException
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface DataContentHandler
public void writeTo(Object object, String string, OutputStream outputStream) throws IOException
writeTo
in interface DataContentHandler
IOException
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.