Package com.sun.xml.ws.encoding
Class DataHandlerDataSource
- java.lang.Object
-
- com.sun.xml.ws.encoding.DataHandlerDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
public class DataHandlerDataSource extends Object implements javax.activation.DataSource
DataSourceimpl using a DataHandler- Author:
- Jitendra Kotamraju
-
-
Constructor Summary
Constructors Constructor Description DataHandlerDataSource(javax.activation.DataHandler dh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()Returns the MIME type of the data represented by this object.InputStreamgetInputStream()Returns anInputStreamrepresenting this object.StringgetName()Returns the name of this object.OutputStreamgetOutputStream()Returns theOutputStreamfor this object.
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
Returns anInputStreamrepresenting this object.- Specified by:
getInputStreamin interfacejavax.activation.DataSource- Returns:
- the
InputStream - Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
Returns theOutputStreamfor this object.- Specified by:
getOutputStreamin interfacejavax.activation.DataSource- Returns:
- the
OutputStream - Throws:
IOException
-
getContentType
public String getContentType()
Returns the MIME type of the data represented by this object.- Specified by:
getContentTypein interfacejavax.activation.DataSource- Returns:
- the MIME type
-
getName
public String getName()
Returns the name of this object.- Specified by:
getNamein interfacejavax.activation.DataSource- Returns:
- the name of this object
-
-