fi.iki.hsivonen.io
Class AutobufferingBoundedInputStream
java.lang.Object
java.io.InputStream
fi.iki.hsivonen.io.AutobufferingBoundedInputStream
- All Implemented Interfaces:
- Closeable
public final class AutobufferingBoundedInputStream
- extends InputStream
- Version:
- $Id: AutobufferingBoundedInputStream.java,v 1.1 2005/05/07 11:09:35 hsivonen Exp $
- Author:
- hsivonen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
private byte[] buf
end
private volatile int end
pos
private int pos
mark
private int mark
full
private volatile boolean full
closed
private volatile boolean closed
monitor
private Object monitor
AutobufferingBoundedInputStream
public AutobufferingBoundedInputStream()
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
- See Also:
InputStream.read()
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
- See Also:
InputStream.available()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
- See Also:
InputStream.close()
mark
public void mark(int arg0)
- Overrides:
mark
in class InputStream
- See Also:
InputStream.mark(int)
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class InputStream
- See Also:
InputStream.markSupported()
read
public int read(byte[] arg0,
int arg1,
int arg2)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
- See Also:
InputStream.read(byte[], int, int)
reset
public void reset()
throws IOException
- Overrides:
reset
in class InputStream
- Throws:
IOException
- See Also:
InputStream.reset()
skip
public long skip(long arg0)
throws IOException
- Overrides:
skip
in class InputStream
- Throws:
IOException
- See Also:
InputStream.skip(long)