public class DataHandlerDataSource extends Object implements DataSource
DataSource
impl using a DataHandlerConstructor 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 DataSource
InputStream
IOException
public OutputStream getOutputStream() throws IOException
OutputStream
for this object.getOutputStream
in interface DataSource
OutputStream
IOException
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
Copyright © 2015 Oracle Corporation. All rights reserved.