Class w3c.mime.MIMEContentLengthInputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.mime.MIMEContentLengthInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----w3c.mime.MIMEInputStream
                           |
                           +----w3c.mime.MIMEContentLengthInputStream

public class MIMEContentLengthInputStream
extends MIMEInputStream
A MIME Input stream to deal with a specific content length. This stream will return -1 once the provided count of bytes have been read from the filtered input stream.

Constructor Index

 o MIMEContentLengthInputStream(InputStream, int)
Builds a new content-length input stream.

Method Index

 o available()
 o read()
 o read(byte[], int, int)
 o skip(long)

Constructors

 o MIMEContentLengthInputStream
  public MIMEContentLengthInputStream(InputStream in,
                                      int length)
Builds a new content-length input stream. This stream acts as a normal stream except that it will return an end of file, after count bytes have been delivered.

Methods

 o read
  public int read() throws IOException
Overrides:
read in class FilterInputStream
 o read
  public int read(byte b[],
                  int off,
                  int len) throws IOException
Overrides:
read in class FilterInputStream
 o skip
  public long skip(long n) throws IOException
Overrides:
skip in class FilterInputStream
 o available
  public int available() throws IOException
Overrides:
available in class FilterInputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index