public static class ByteArrayIOStream.ByteArrayIOInputStream
extends java.io.ByteArrayInputStream
| Modifier | Constructor and Description |
|---|---|
protected |
ByteArrayIOInputStream(byte[] buf,
int count) |
|
ByteArrayIOInputStream(byte[] buf,
int offset,
int length) |
protected |
ByteArrayIOInputStream(java.io.InputStream is)
creates an input output stream class from any stream if is already is a buffered inputstream, no copy is made
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString(int maxLen) |
byte[] |
getBuf() |
long |
getCount() |
ByteArrayIOStream.ByteArrayIOInputStream |
getNewStream()
get a new input stream that starts at pos
|
void |
seek(long pos) |
long |
tell() |
java.lang.String |
toString() |
public ByteArrayIOInputStream(byte[] buf,
int offset,
int length)
buf - offset - length - protected ByteArrayIOInputStream(byte[] buf,
int count)
buf - count - protected ByteArrayIOInputStream(java.io.InputStream is)
is - the inputstream to bufferpublic void seek(long pos)
pos - public long tell()
public ByteArrayIOStream.ByteArrayIOInputStream getNewStream()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public byte[] getBuf()
public long getCount()
public java.lang.String asString(int maxLen)