public class MultipartDataContentHandler
extends java.lang.Object
implements javax.activation.DataContentHandler
Constructor and Description |
---|
MultipartDataContentHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContent(javax.activation.DataSource ds)
Return the content.
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df,
javax.activation.DataSource ds)
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)
Write the object to the output stream, using the specific MIME type.
|
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
DataContentHandler
.getTransferDataFlavors
in interface javax.activation.DataContentHandler
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds)
getTransferData
in interface javax.activation.DataContentHandler
df
- The DataFlavorins
- The InputStream corresponding to the datapublic java.lang.Object getContent(javax.activation.DataSource ds)
getContent
in interface javax.activation.DataContentHandler
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOException
writeTo
in interface javax.activation.DataContentHandler
java.io.IOException