public class FastInfosetDataContentHandler
extends java.lang.Object
implements javax.activation.DataContentHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STR_SRC |
| Constructor and Description |
|---|
FastInfosetDataContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent(javax.activation.DataSource dataSource) |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor,
javax.activation.DataSource dataSource)
return the Transfer Data of type DataFlavor from InputStream
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
return the DataFlavors for this
DataContentHandler |
void |
writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
construct an object from a byte stream
(similar semantically to previous method, we are deciding
which one to support)
|
public static final java.lang.String STR_SRC
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
DataContentHandlergetTransferDataFlavors in interface javax.activation.DataContentHandlerpublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor,
javax.activation.DataSource dataSource)
throws java.io.IOException
getTransferData in interface javax.activation.DataContentHandlerdf - The DataFlavor.ins - The InputStream corresponding to the data.java.io.IOExceptionpublic java.lang.Object getContent(javax.activation.DataSource dataSource)
throws java.io.IOException
getContent in interface javax.activation.DataContentHandlerjava.io.IOExceptionpublic void writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
throws java.io.IOException
writeTo in interface javax.activation.DataContentHandlerjava.io.IOExceptionCopyright © 2013 Oracle. All Rights Reserved.