ByteOutputBuffer Class Members
In This Topic
The following tables list the members exposed by ByteOutputBuffer.
Public Constructors
Public Fields
| Name | Description |
| BUF_DEF_LEN | The default initial buffer size |
| BUF_INC | The buffer increase size |
Top
Public Methods
| Name | Description |
| getByte | Returns the byte buffered at the given position in the buffer. The position in the buffer is the index of the 'write()' method call after the last call to 'reset()'. |
| reset | Discards all the buffered data, by resetting the counter of written bytes to 0. |
| size | Returns the number of valid bytes in the output buffer (count class variable). |
| toByteArray | Copies the specified part of the stream to the 'outbuf' byte array. |
| write | Writes the specified byte to this byte array output stream. The functionality provided by this implementation is the same as for the one in the superclass, however this method is not synchronized and therefore not safe thread, but faster. |
Top
See Also