public class StringDataContentHandler extends Object implements javax.activation.DataContentHandler
| Constructor and Description |
|---|
StringDataContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getContent(javax.activation.DataSource ds) |
protected javax.activation.ActivationDataFlavor |
getDF() |
Object |
getTransferData(DataFlavor df,
javax.activation.DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
|
DataFlavor[] |
getTransferDataFlavors()
Return the DataFlavors for this
DataContentHandler. |
void |
writeTo(Object obj,
String type,
OutputStream os)
Write the object to the output stream, using the specified MIME type.
|
protected javax.activation.ActivationDataFlavor getDF()
public DataFlavor[] getTransferDataFlavors()
DataContentHandler.getTransferDataFlavors in interface javax.activation.DataContentHandlerpublic Object getTransferData(DataFlavor df, javax.activation.DataSource ds) throws IOException
getTransferData in interface javax.activation.DataContentHandlerdf - The DataFlavords - The DataSource corresponding to the dataIOExceptionpublic Object getContent(javax.activation.DataSource ds) throws IOException
getContent in interface javax.activation.DataContentHandlerIOExceptionpublic void writeTo(Object obj, String type, OutputStream os) throws IOException
writeTo in interface javax.activation.DataContentHandlerIOExceptionCopyright © 2014 Oracle. All rights reserved.