public class DataHandlerDataSource extends Object implements DataSource
DataSource impl using a DataHandler| Constructor and Description |
|---|
DataHandlerDataSource(DataHandler dh) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Returns the MIME type of the data represented by this object.
|
InputStream |
getInputStream()
Returns an
InputStream representing this object. |
String |
getName()
Returns the name of this object.
|
OutputStream |
getOutputStream()
Returns the
OutputStream for this object. |
public DataHandlerDataSource(DataHandler dh)
public InputStream getInputStream() throws IOException
InputStream representing this object.getInputStream in interface DataSourceInputStreamIOExceptionpublic OutputStream getOutputStream() throws IOException
OutputStream for this object.getOutputStream in interface DataSourceOutputStreamIOExceptionpublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourceCopyright © 2015 Oracle Corporation. All rights reserved.