org.lobobrowser.util.io
public class RecordedInputStream extends java.io.InputStream
Note: Buffered streams should wrap this class as opposed to the other way around.
Constructor and Description |
---|
RecordedInputStream(java.io.InputStream delegate,
int maxBufferSize) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
consumeToEOF() |
byte[] |
getBytesRead() |
java.lang.String |
getString(java.lang.String encoding) |
boolean |
hasReachedEOF() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
reset() |
public RecordedInputStream(java.io.InputStream delegate, int maxBufferSize)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void consumeToEOF() throws java.io.IOException
java.io.IOException
public byte[] getBytesRead() throws BufferExceededException
BufferExceededException
public java.lang.String getString(java.lang.String encoding) throws java.io.UnsupportedEncodingException, BufferExceededException
java.io.UnsupportedEncodingException
BufferExceededException
public boolean hasReachedEOF()