Home » Open-JDK-6.b17-src » javax » activation » [javadoc | source]
javax.activation
class: ObjectDataContentHandler [javadoc | source]
java.lang.Object
   javax.activation.ObjectDataContentHandler

All Implemented Interfaces:
    DataContentHandler

Constructor:
 public ObjectDataContentHandler(DataContentHandler dch,
    Object obj,
    String mimeType) 
    The constructor.
Method from javax.activation.ObjectDataContentHandler Summary:
getContent,   getDCH,   getTransferData,   getTransferDataFlavors,   writeTo
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.activation.ObjectDataContentHandler Detail:
 public Object getContent(DataSource ds) 
 public DataContentHandler getDCH() 
    Return the DataContentHandler for this object. Used only by the DataHandler class.
 public Object getTransferData(DataFlavor df,
    DataSource ds) throws UnsupportedFlavorException, IOException 
    Return the Transfer Data of type DataFlavor from InputStream.
 public synchronized DataFlavor[] getTransferDataFlavors() 
    Return the DataFlavors for this DataContentHandler.
 public  void writeTo(Object obj,
    String mimeType,
    OutputStream os) throws IOException 
    Write the object to the output stream.