An buffer of bytes that can be written sequentially. More...
Public Member Functions | |
| ByteOutputStream () | |
| int | getSize () |
| Gets the number of bytes written to the stream. More... | |
| void | reset () |
| Empties this stream and resets it. More... | |
| byte[] | toArray () |
| Converts the stream to a byte array. More... | |
| void | write (byte value) |
| Writes a value to the stream. More... | |
| void | writeBuffer (byte[] buffer) |
| Writes a buffer to the stream. More... | |
| void | writeBuffer (byte[] buffer, int offset, int length) |
| Writes a buffer to the stream. More... | |
| void | writeTo (fm.liveswitch.ByteOutputStream stream) |
| Writes the contents of this stream to another stream. More... | |
An buffer of bytes that can be written sequentially.
| fm.liveswitch.ByteOutputStream.ByteOutputStream | ( | ) |
| int fm.liveswitch.ByteOutputStream.getSize | ( | ) |
Gets the number of bytes written to the stream.
| void fm.liveswitch.ByteOutputStream.reset | ( | ) |
Empties this stream and resets it.
| byte [] fm.liveswitch.ByteOutputStream.toArray | ( | ) |
Converts the stream to a byte array.
| void fm.liveswitch.ByteOutputStream.write | ( | byte | value | ) |
Writes a value to the stream.
| value | The value. |
| void fm.liveswitch.ByteOutputStream.writeBuffer | ( | byte[] | buffer | ) |
Writes a buffer to the stream.
| buffer | The buffer. |
| void fm.liveswitch.ByteOutputStream.writeBuffer | ( | byte[] | buffer, |
| int | offset, | ||
| int | length | ||
| ) |
Writes a buffer to the stream.
| buffer | The buffer. |
| offset | The offset. |
| length | The length. |
| void fm.liveswitch.ByteOutputStream.writeTo | ( | fm.liveswitch.ByteOutputStream | stream | ) |
Writes the contents of this stream to another stream.
| stream | The stream. |