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 SummaryAll 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- 
getDefaultMimeTypepublic static java.lang.String getDefaultMimeType() 
 - 
getDataFlavorNamepublic static java.lang.String getDataFlavorName() 
 - 
getObjectpublic static java.lang.Object getObject() 
 - 
getTransferDataFlavorspublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors() - Specified by:
- getTransferDataFlavorsin interface- javax.activation.DataContentHandler
 
 - 
getTransferDatapublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException- Specified by:
- getTransferDatain interface- javax.activation.DataContentHandler
- Throws:
- java.awt.datatransfer.UnsupportedFlavorException
- java.io.IOException
 
 - 
getContentpublic 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 interface- javax.activation.DataContentHandler
- Throws:
- java.io.IOException
 
 - 
writeTopublic 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 interface- javax.activation.DataContentHandler
- Throws:
- java.io.IOException
 
 - 
getMimeTypepublic java.lang.String getMimeType() 
 
- 
 
-