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