: Interface DataSource

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.activation
Interface DataSource

All Known Implementing Classes:
  FileDataSource, URLDataSource

public interface DataSource

Data Source.

Version:
  $Revision: 1.3 $
Author:
  Andrew Selkirk

Method Summary
`java.lang.String` | `getContentType()` Get content type.
`java.io.InputStream` | `getInputStream()` Get input stream.
`java.lang.String` | `getName()` Get name.
`java.io.OutputStream` | `getOutputStream()` Get output stream.

Method Detail

### getName

    public java.lang.String getName()

  Get name.
  Returns:
    Name

### getInputStream

    public java.io.InputStream getInputStream()
                                       throws java.io.IOException

  Get input stream.
  Returns:
    Input stream
  Throws:
    `java.io.IOException` - IO exception occurred

### getContentType

    public java.lang.String getContentType()

  Get content type.
  Returns:
    Content type

### getOutputStream

    public java.io.OutputStream getOutputStream()
                                         throws java.io.IOException

  Get output stream.
  Returns:
    Output stream
  Throws:
    `java.io.IOException` - IO exception occurred

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

© Copyright 2002 the Free Software Foundation, all rights reserved.