Package com.sun.xml.ws.encoding
Class DataHandlerDataSource
- java.lang.Object
-
- com.sun.xml.ws.encoding.DataHandlerDataSource
-
- All Implemented Interfaces:
jakarta.activation.DataSource
public class DataHandlerDataSource extends Object implements jakarta.activation.DataSource
DataSourceimpl using a DataHandler- Author:
- Jitendra Kotamraju
-
-
Constructor Summary
Constructors Constructor Description DataHandlerDataSource(jakarta.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 interfacejakarta.activation.DataSource- Returns:
- the
InputStream - Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
Returns theOutputStreamfor this object.- Specified by:
getOutputStreamin interfacejakarta.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 interfacejakarta.activation.DataSource- Returns:
- the MIME type
-
getName
public String getName()
Returns the name of this object.- Specified by:
getNamein interfacejakarta.activation.DataSource- Returns:
- the name of this object
-
-