public class DataHandlerDataSource extends Object implements javax.activation.DataSource
DataSource impl using a DataHandler| Constructor and Description |
|---|
DataHandlerDataSource(javax.activation.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(javax.activation.DataHandler dh)
public InputStream getInputStream() throws IOException
InputStream representing this object.getInputStream in interface javax.activation.DataSourceInputStreamIOExceptionpublic OutputStream getOutputStream() throws IOException
OutputStream for this object.getOutputStream in interface javax.activation.DataSourceOutputStreamIOExceptionpublic String getContentType()
getContentType in interface javax.activation.DataSourcepublic String getName()
getName in interface javax.activation.DataSourceCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.