class DataHandlerDataSource extends java.lang.Object implements DataSource
Modifier and Type | Field and Description |
---|---|
(package private) DataHandler |
dataHandler |
Constructor and Description |
---|
DataHandlerDataSource(DataHandler dh)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Returns the MIME type of the data represented by this object.
|
java.io.InputStream |
getInputStream()
Returns an
InputStream representing this object. |
java.lang.String |
getName()
Returns the name of this object.
|
java.io.OutputStream |
getOutputStream()
Returns the
OutputStream for this object. |
DataHandler dataHandler
public DataHandlerDataSource(DataHandler dh)
public java.io.InputStream getInputStream() throws java.io.IOException
InputStream
representing this object.getInputStream
in interface DataSource
InputStream
java.io.IOException
- for failures creating the InputStreampublic java.io.OutputStream getOutputStream() throws java.io.IOException
OutputStream
for this object.getOutputStream
in interface DataSource
OutputStream
java.io.IOException
- for failures creating the OutputStreampublic java.lang.String getContentType()
getContentType
in interface DataSource
public java.lang.String getName()
getName
in interface DataSource