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.DataContentHandlerTest 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.ObjectgetContent(javax.activation.DataSource ds)Return an object representing the data in its most preferred form.static java.lang.StringgetDataFlavorName()static java.lang.StringgetDefaultMimeType()java.lang.StringgetMimeType()static java.lang.ObjectgetObject()java.lang.ObjectgetTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds)java.awt.datatransfer.DataFlavor[]getTransferDataFlavors()voidwriteTo(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:
getTransferDataFlavorsin 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:
getTransferDatain interfacejavax.activation.DataContentHandler- Throws:
java.awt.datatransfer.UnsupportedFlavorExceptionjava.io.IOException
-
getContent
public java.lang.Object getContent(javax.activation.DataSource ds) throws java.io.IOExceptionReturn 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:
getContentin 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.IOExceptionConvert the object to a byte stream of the specified MIME type and write it to the output stream.- Specified by:
writeToin interfacejavax.activation.DataContentHandler- Throws:
java.io.IOException
-
getMimeType
public java.lang.String getMimeType()
-
-