javax.activation
Interface DataSource
- FileDataSource, URLDataSource
public interface DataSource
An interface by which MIME data can be retrieved and stored.
String | getContentType() - Returns the MIME content type of the data.
|
InputStream | getInputStream() - Returns an input stream from which the data can be read.
|
String | getName() - Returns the underlying name of this object.
|
OutputStream | getOutputStream() - Returns an output stream to which the data can be written.
|
getContentType
public String getContentType()
Returns the MIME content type of the data.
getInputStream
public InputStream getInputStream()
throws IOException
Returns an input stream from which the data can be read.
getName
public String getName()
Returns the underlying name of this object.
getOutputStream
public OutputStream getOutputStream()
throws IOException
Returns an output stream to which the data can be written.