| Modifier and Type | Field and Description |
|---|---|
| protected int | start
Position within shared buffer that this stream starts at. |
| Access | Constructor and Description |
|---|---|
| public | SharedByteArrayInputStream(byte[]
the byte array buf)Create a SharedByteArrayInputStream representing the entire byte array. |
| public | SharedByteArrayInputStream(byte[]
the byte array buf, int offset in byte array to first byte to include offset, int number of bytes to include length)Create a SharedByteArrayInputStream representing the part
of the byte array from |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the current positionImplements javax. |
| public InputStream | Returns: the new streamthe starting position start, long the ending position + 1 end)Implements javax. start (inclusive)
up to end (exclusive).
|
| start | back to summary |
|---|---|
| protected int start Position within shared buffer that this stream starts at. | |
| SharedByteArrayInputStream | back to summary |
|---|---|
| public SharedByteArrayInputStream(byte[] buf) Create a SharedByteArrayInputStream representing the entire byte array.
| |
| SharedByteArrayInputStream | back to summary |
|---|---|
| public SharedByteArrayInputStream(byte[] buf, int offset, int length) Create a SharedByteArrayInputStream representing the part
of the byte array from
| |
| getPosition | back to summary |
|---|---|
| public long getPosition() Implements javax. Return the current position in the InputStream, as an offset from the beginning of the InputStream.
| |
| newStream | back to summary |
|---|---|
| public InputStream newStream(long start, long end) Implements javax. Return a new InputStream representing a subset of the data
from this InputStream, starting at
| |