Class TestDCH
- java.lang.Object
-
- javasoft.sqe.tests.api.javax.activation.TestClasses.TestDCH
-
- All Implemented Interfaces:
javax.activation.DataContentHandler
public class TestDCH extends java.lang.Object implements javax.activation.DataContentHandler
Test DCH that does nothing. Just provides an object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent(javax.activation.DataSource ds)
Return an object representing the data in its most preferred form.static java.lang.String
getDataFlavorName()
static java.lang.String
getDefaultMimeType()
java.lang.String
getMimeType()
static java.lang.Object
getObject()
java.lang.Object
getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds)
java.awt.datatransfer.DataFlavor[]
getTransferDataFlavors()
void
writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os)
Convert the object to a byte stream of the specified MIME type and write it to the output stream.
-
-
-
Method Detail
-
getDefaultMimeType
public static java.lang.String getDefaultMimeType()
-
getDataFlavorName
public static java.lang.String getDataFlavorName()
-
getObject
public static java.lang.Object getObject()
-
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interfacejavax.activation.DataContentHandler
-
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
- Specified by:
getTransferData
in interfacejavax.activation.DataContentHandler
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
-
getContent
public java.lang.Object getContent(javax.activation.DataSource ds) throws java.io.IOException
Return an object representing the data in its most preferred form. Generally this will be the form described by the first DataFlavor returned by the getTransferDataFlavors method.- Specified by:
getContent
in interfacejavax.activation.DataContentHandler
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOException
Convert the object to a byte stream of the specified MIME type and write it to the output stream.- Specified by:
writeTo
in interfacejavax.activation.DataContentHandler
- Throws:
java.io.IOException
-
getMimeType
public java.lang.String getMimeType()
-
-