public static class ByteArrayIOStream.ByteArrayIOInputStream extends ByteArrayInputStream
buf, count, mark, pos
Modifier | Constructor and Description |
---|---|
protected |
ByteArrayIOInputStream(byte[] buf,
int count) |
|
ByteArrayIOInputStream(byte[] buf,
int offset,
int length) |
protected |
ByteArrayIOInputStream(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 |
---|---|
byte[] |
getBuf() |
long |
getCount() |
ByteArrayIOStream.ByteArrayIOInputStream |
getNewStream()
get a new input stream that starts at pos
|
void |
seek(long pos) |
long |
tell() |
String |
toString() |
available, close, mark, markSupported, read, read, reset, skip
read
public ByteArrayIOInputStream(byte[] buf, int offset, int length)
buf
- offset
- length
- protected ByteArrayIOInputStream(byte[] buf, int count)
buf
- count
- protected ByteArrayIOInputStream(InputStream is)
is
- the inputstream to bufferpublic void seek(long pos)
pos
- public long tell()
public ByteArrayIOStream.ByteArrayIOInputStream getNewStream()
public String toString()
toString
in class Object
Object.toString()
public byte[] getBuf()
public long getCount()
Copyright © 2018. All rights reserved.