Package com.sun.xml.ws.encoding
Class DataHandlerDataSource
java.lang.Object
com.sun.xml.ws.encoding.DataHandlerDataSource
- All Implemented Interfaces:
javax.activation.DataSource
DataSource impl using a DataHandler- Author:
- Jitendra Kotamraju
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the MIME type of the data represented by this object.Returns anInputStreamrepresenting this object.getName()Returns the name of this object.Returns theOutputStreamfor this object.
-
Constructor Details
-
DataHandlerDataSource
public DataHandlerDataSource(javax.activation.DataHandler dh)
-
-
Method Details
-
getInputStream
Returns anInputStreamrepresenting this object.- Specified by:
getInputStreamin interfacejavax.activation.DataSource- Returns:
- the
InputStream - Throws:
IOException
-
getOutputStream
Returns theOutputStreamfor this object.- Specified by:
getOutputStreamin interfacejavax.activation.DataSource- Returns:
- the
OutputStream - Throws:
IOException
-
getContentType
Returns the MIME type of the data represented by this object.- Specified by:
getContentTypein interfacejavax.activation.DataSource- Returns:
- the MIME type
-
getName
Returns the name of this object.- Specified by:
getNamein interfacejavax.activation.DataSource- Returns:
- the name of this object
-