javax.activation
Interface DataSource

All Known Implementing Classes:
FileDataSource, URLDataSource

public interface DataSource

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

Version:
1.1
Author:
Chris Burdess

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

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

Throws:
java.io.IOException

getOutputStream

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

Throws:
java.io.IOException

getContentType

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


getName

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



© Copyright 2002 The Free Software Foundation, All rights reserved