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.
-
MIMEContentLengthInputStream(InputStream, int)
- Builds a new content-length input stream.
-
available()
-
-
read()
-
-
read(byte[], int, int)
-
-
skip(long)
-
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.
read
public int read() throws IOException
- Overrides:
- read in class FilterInputStream
read
public int read(byte b[],
int off,
int len) throws IOException
- Overrides:
- read in class FilterInputStream
skip
public long skip(long n) throws IOException
- Overrides:
- skip in class FilterInputStream
available
public int available() throws IOException
- Overrides:
- available in class FilterInputStream
All Packages Class Hierarchy This Package Previous Next Index