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
 java.lang.String getContentType()
          Returns the MIME content type of the data.
 java.io.InputStream getInputStream()
          Returns an input stream from which the data can be read.
 java.lang.String getName()
          Returns the underlying name of this object.
 java.io.OutputStream getOutputStream()
          Returns an output stream to which the data can be written.
 

Method Detail

getInputStream

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

Throws:
java.io.IOException

getOutputStream

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

Throws:
java.io.IOException

getContentType

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


getName

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