com.sun.xml.messaging.saaj.soap
Class FastInfosetDataContentHandler

java.lang.Object
  extended by com.sun.xml.messaging.saaj.soap.FastInfosetDataContentHandler
All Implemented Interfaces:
DataContentHandler

public class FastInfosetDataContentHandler
extends Object
implements DataContentHandler

JAF data handler for Fast Infoset content

Author:
Santiago Pericas-Geertsen

Field Summary
static String STR_SRC
           
 
Constructor Summary
FastInfosetDataContentHandler()
           
 
Method Summary
 Object getContent(DataSource dataSource)
           
 Object getTransferData(DataFlavor flavor, DataSource dataSource)
          return the Transfer Data of type DataFlavor from InputStream
 DataFlavor[] getTransferDataFlavors()
          return the DataFlavors for this DataContentHandler
 void writeTo(Object obj, String mimeType, OutputStream os)
          construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_SRC

public static final String STR_SRC
See Also:
Constant Field Values
Constructor Detail

FastInfosetDataContentHandler

public FastInfosetDataContentHandler()
Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
return the DataFlavors for this DataContentHandler

Specified by:
getTransferDataFlavors in interface DataContentHandler
Returns:
The DataFlavors.

getTransferData

public Object getTransferData(DataFlavor flavor,
                              DataSource dataSource)
                       throws IOException
return the Transfer Data of type DataFlavor from InputStream

Specified by:
getTransferData in interface DataContentHandler
Parameters:
df - The DataFlavor.
ins - The InputStream corresponding to the data.
Returns:
The constructed Object.
Throws:
IOException

getContent

public Object getContent(DataSource dataSource)
                  throws IOException
Specified by:
getContent in interface DataContentHandler
Throws:
IOException

writeTo

public void writeTo(Object obj,
                    String mimeType,
                    OutputStream os)
             throws IOException
construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)

Specified by:
writeTo in interface DataContentHandler
Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.