org.lobobrowser.util.io
Class RecordedInputStream
InputStream
org.lobobrowser.util.io.RecordedInputStream
public class RecordedInputStream
extends InputStream
Wraps an InputStream and records all of the
bytes read. This stream supports mark() and reset().
Note: Buffered streams should wrap this class
as opposed to the other way around.
RecordedInputStream
public RecordedInputStream(InputStream delegate,
int maxBufferSize)
available
public int available()
throws IOException
close
public void close()
throws IOException
consumeToEOF
public void consumeToEOF()
throws IOException
getString
public String getString(String encoding)
throws java.io.UnsupportedEncodingException,
BufferExceededException
hasReachedEOF
public boolean hasReachedEOF()
mark
public void mark(int readlimit)
markSupported
public boolean markSupported()
read
public int read()
throws IOException
read
public int read(byte[] buffer,
int offset,
int length)
throws IOException
reset
public void reset()
throws IOException