public class HttpBufferedInputStream
extends java.io.BufferedInputStream
| Constructor and Description |
|---|
HttpBufferedInputStream(java.io.InputStream i,
HttpConnection http,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
int |
read()
reads a byte from the inputstream.
|
int |
read(byte[] b)
reads into an array of bytes.
|
int |
read(byte[] b,
int offset,
int length)
reads into an array of bytes.
|
int |
skip(int n)
Skips exactly
n bytes of input in the underlying
input stream. |
public HttpBufferedInputStream(java.io.InputStream i,
HttpConnection http,
java.lang.String id)
throws java.io.IOException
java.io.IOExceptionpublic final int read()
throws java.io.IOException
read in class java.io.BufferedInputStreamjava.io.IOException - In case of I/O error.public final int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamb - byte array to read into.java.io.IOException - In case of I/O error.public final int read(byte[] b,
int offset,
int length)
throws java.io.IOException
read in class java.io.BufferedInputStreamb - byte array to read into.offset - the offset of the data.length - the maximum number of bytes to read.java.io.IOException - In case of I/O error.public final int skip(int n)
throws java.io.IOException
n bytes of input in the underlying
input stream. This method blocks until all the bytes are skipped,
the end of the stream is detected, or an exception is thrown.n - the number of bytes to be skipped.n.java.io.EOFException - if this input stream reaches the end before
skipping all the bytes.java.io.IOException - if an I/O error occurs.