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.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void consumeToEOF()
throws java.io.IOException
java.io.IOExceptionpublic byte[] getBytesRead()
throws BufferExceededException
BufferExceededExceptionpublic java.lang.String getString(java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
BufferExceededException
java.io.UnsupportedEncodingExceptionBufferExceededExceptionpublic boolean hasReachedEOF()