javax.activation

Interface DataSource

public interface DataSource

An interface by which MIME data can be retrieved and stored.
Method Summary
StringgetContentType()
Returns the MIME content type of the data.
InputStreamgetInputStream()
Returns an input stream from which the data can be read.
StringgetName()
Returns the underlying name of this object.
OutputStreamgetOutputStream()
Returns an output stream to which the data can be written.

Method Detail

getContentType

public String getContentType()
Returns the MIME content type of the data.

getInputStream

public InputStream getInputStream()
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()
Returns an output stream to which the data can be written.