public class ReusableByteArrayInputStream extends ByteArrayInputStream
buf, count, mark, pos| Constructor and Description |
|---|
ReusableByteArrayInputStream(byte[] buf)
Creates a ByteArrayInputStream by calling the super class's constructor.
|
ReusableByteArrayInputStream(byte[] buf,
int offset,
int length)
Creates a ByteArrayInputStream by calling the super class's constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the current last position of the Stream till which there is data
|
int |
getPos()
Gets the current position (offset) of the Stream.
|
void |
setBuf(byte[] b,
int offset,
int length)
Sets the buffer to use.
|
available, close, mark, markSupported, read, read, reset, skipreadpublic ReusableByteArrayInputStream(byte[] buf)
buf - the input buffer.public ReusableByteArrayInputStream(byte[] buf,
int offset,
int length)
buf - the input buffer.offset - the offset in the buffer of the first byte to read.length - the maximum number of bytes to read from the buffer.public void setBuf(byte[] b,
int offset,
int length)
b - the input buffer.offset - the offset in the buffer of the first byte to read.length - the maximum number of bytes to read from the buffer.public int getPos()
public int getCount()
Copyright © 2013- Suresh Mahalingam. All Rights Reserved.