javax.activation
Interface DataSource

All Known Implementing Classes:
FileDataSource, URLDataSource

public interface DataSource

An interface by which MIME data can be retrieved and stored.


Method Summary
 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.
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Returns an input stream from which the data can be read.

Throws:
IOException

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Returns an output stream to which the data can be written.

Throws:
IOException

getContentType

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


getName

String getName()
Returns the underlying name of this object.