Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface DataContentHandler
Method Summary | |
Object |
|
Object |
|
DataFlavor[] |
|
void |
|
public Object getContent(DataSource ds) throws IOException
Returns an object representing the data in its most preferred form.
- Parameters:
ds
- the data source of the data to be converted
public Object getTransferData(DataFlavor df, DataSource ds) throws UnsupportedFlavorException, IOException
Returns an object representing the data to be transferred.
- Parameters:
df
- the flavor representing the requested typeds
- the data source of the data to be converted
public DataFlavor[] getTransferDataFlavors()
Returns a list of the flavors that data can be provided in, ordered by preference.
public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
Writes the object as a stream of bytes.
- Parameters:
obj
- the object to convertmimeType
- the MIME type of the streamos
- the byte stream