|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.norther.tammi.acorn.io.InputStreamAdapter org.norther.tammi.acorn.io.CollectorInputStream
public class CollectorInputStream
An input stream adapter collecting read input into its internal buffer.
Constructor Summary | |
---|---|
CollectorInputStream(InputStream in)
Constructs a new collector input stream. |
Method Summary | |
---|---|
int |
getByteCount()
Gets the number of collected bytes. |
byte[] |
getBytes()
Gets the byte buffer. |
void |
mark(int readlimit)
|
int |
read()
|
int |
read(byte[] bb)
|
int |
read(byte[] bb,
int off,
int len)
|
void |
reset()
|
void |
reset(InputStream in)
Resets the collector for a new stream. |
long |
skip(long n)
|
Methods inherited from class org.norther.tammi.acorn.io.InputStreamAdapter |
---|
available, close, getInputStream, markSupported, setInputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectorInputStream(InputStream in)
in
- an input stream adaptee.Method Detail |
---|
public int read() throws IOException
read
in class InputStreamAdapter
IOException
public int read(byte[] bb) throws IOException
read
in class InputStreamAdapter
IOException
public int read(byte[] bb, int off, int len) throws IOException
read
in class InputStreamAdapter
IOException
public void mark(int readlimit)
mark
in class InputStreamAdapter
public void reset() throws IOException
reset
in class InputStreamAdapter
IOException
public long skip(long n) throws IOException
skip
in class InputStreamAdapter
IOException
public void reset(InputStream in)
in
- a new input stream.public int getByteCount()
public byte[] getBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |