at.gv.egiz.pdfas.impl.input
Class DelimitedInputStream
java.lang.Object
java.io.InputStream
at.gv.egiz.pdfas.impl.input.DelimitedInputStream
- public class DelimitedInputStream
- extends InputStream
An input stream that has a delimited length.
- Author:
- wprinz
|
Field Summary |
protected int |
bytes_to_read
The number of bytes that can be read from the stream. |
protected InputStream |
is
The underlying InputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
is
protected InputStream is
- The underlying InputStream.
bytes_to_read
protected int bytes_to_read
- The number of bytes that can be read from the stream.
DelimitedInputStream
public DelimitedInputStream(InputStream is,
int length)
- Constructs the DelimitedInputStream from which a maximum of length bytes
can be read.
read
public int read()
throws IOException
- Throws:
IOException- See Also:
InputStream.read()
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException- See Also:
InputStream.read(byte[], int, int)
read
public int read(byte[] b)
throws IOException
- Throws:
IOException- See Also:
InputStream.read(byte[])
skip
public long skip(long n)
throws IOException
- Throws:
IOException- See Also:
InputStream.skip(long)
close
public void close()
throws IOException
- Throws:
IOException- See Also:
InputStream.close()
available
public int available()
throws IOException
- Throws:
IOException- See Also:
InputStream.available()
Copyright © 2006-2010. All Rights Reserved.