|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.jar.Manifest.FastInputStream
| Field Summary | |
private byte[] |
buf
|
private int |
count
|
private int |
pos
|
| Fields inherited from class java.io.FilterInputStream |
in |
| Fields inherited from class java.io.InputStream |
|
| Constructor Summary | |
(package private) |
Manifest.FastInputStream(InputStream in)
|
(package private) |
Manifest.FastInputStream(InputStream in,
int size)
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read from this input stream without blocking. |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
private void |
fill()
|
byte |
peek()
|
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream
into an array of bytes. |
int |
readLine(byte[] b)
|
int |
readLine(byte[] b,
int off,
int len)
|
long |
skip(long n)
Skips over and discards n bytes of data from the
input stream. |
| Methods inherited from class java.io.FilterInputStream |
mark, markSupported, read, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private byte[] buf
private int count
private int pos
| Constructor Detail |
Manifest.FastInputStream(InputStream in)
Manifest.FastInputStream(InputStream in,
int size)
| Method Detail |
public int read()
throws IOException
FilterInputStreamint in the range
0 to 255. If no byte is available
because the end of the stream has been reached, the value
-1 is returned. This method blocks until input data
is available, the end of the stream is detected, or an exception
is thrown.
This method
simply performs in.read() and returns the result.
read in class FilterInputStream-1 if the end of the
stream is reached.
IOException - if an I/O error occurs.FilterInputStream.in
public int read(byte[] b,
int off,
int len)
throws IOException
FilterInputStreamlen bytes of data from this input stream
into an array of bytes. This method blocks until some input is
available.
This method simply performs in.read(b, off, len)
and returns the result.
read in class FilterInputStreamb - the buffer into which the data is read.off - the start offset of the data.len - the maximum number of bytes read.
-1 if there is no more data because the end of
the stream has been reached.
IOException - if an I/O error occurs.FilterInputStream.in
public int readLine(byte[] b,
int off,
int len)
throws IOException
IOException
public byte peek()
throws IOException
IOException
public int readLine(byte[] b)
throws IOException
IOException
public long skip(long n)
throws IOException
FilterInputStreamn bytes of data from the
input stream. The skip method may, for a variety of
reasons, end up skipping over some smaller number of bytes,
possibly 0. The actual number of bytes skipped is
returned.
This method
simply performs in.skip(n).
skip in class FilterInputStreamn - the number of bytes to be skipped.
IOException - if an I/O error occurs.
public int available()
throws IOException
FilterInputStream
This method
simply performs in.available() and
returns the result.
available in class FilterInputStreamIOException - if an I/O error occurs.FilterInputStream.in
public void close()
throws IOException
FilterInputStreamin.close().
close in class FilterInputStreamIOException - if an I/O error occurs.FilterInputStream.in
private void fill()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||