| Modifier and Type | Field and Description |
|---|---|
| private long | pos
The current position of the stream. |
| private BlockedByteArray | src
The underlying destination. |
| Access | Constructor and Description |
|---|---|
| public | BlockedByteArrayOutputStream(BlockedByteArray
the underlying blocked byte array src, long the initial position of stream pos)Creates a new stream writing data into the specified blocked byte array. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv long | |
| pack-priv void | |
| public void | write(int
the byte to write b)Implements abstract java. Writes the single byte into the underlying blocked byte array. |
| public void | write(byte[]
source byte array buf, int index of the first byte to write offset, int the number of bytes to write len)Overrides java. Writes the specified bytes into the underlying blocked byte array. |
| pos | back to summary |
|---|---|
| private long pos The current position of the stream. | |
| src | back to summary |
|---|---|
| private BlockedByteArray src The underlying destination. Set to | |
| BlockedByteArrayOutputStream | back to summary |
|---|---|
| public BlockedByteArrayOutputStream(BlockedByteArray src, long pos) Creates a new stream writing data into the specified blocked byte array.
| |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Closes the stream. | |
| getPosition | back to summary |
|---|---|
| pack-priv long getPosition() Returns the current position.
| |
| setPosition | back to summary |
|---|---|
| pack-priv void setPosition(long newPos) Sets the position.
| |
| write | back to summary |
|---|---|
| public void write(int b) Implements abstract java. Writes the single byte into the underlying blocked byte array.
| |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int offset, int len) Overrides java. Writes the specified bytes into the underlying blocked byte array.
| |