#include <coherence/io/AbstractReadBuffer.hpp>
Inherits Object.
Inherited by AbstractOctetArrayReadBuffer::OctetArrayBufferInput.
Public Types | |
| typedef spec::Handle | Handle |
| AbstractBufferInput Handle definition. | |
| typedef spec::View | View |
| AbstractBufferInput View definition. | |
| typedef spec::Holder | Holder |
| AbstractBufferInput Holder definition. | |
Public Member Functions | |
| virtual ReadBuffer::View | getBuffer () const |
| virtual size32_t | getOffset () const |
| virtual void | setOffset (size32_t of) |
| virtual size32_t | available () const |
| virtual void | skip (size32_t cb) |
| virtual octet_t | read () |
| virtual void | read (Array< octet_t >::Handle hab) |
| virtual void | read (Array< octet_t >::Handle hab, size32_t of, size32_t cb) |
| virtual ReadBuffer::View | readBuffer (size32_t cb) |
| virtual bool | readBoolean () |
| virtual wchar16_t | readChar16 () |
| virtual String::View | readString () |
| virtual int16_t | readInt16 () |
| virtual int32_t | readInt32 () |
| virtual int64_t | readInt64 () |
| virtual float32_t | readFloat32 () |
| virtual float64_t | readFloat64 () |
Protected Member Functions | |
| AbstractBufferInput (AbstractReadBuffer::View vBuf) | |
| Create a new AbstractBufferInput instance that delegates to the given AbstractReadBuffer. | |
| virtual void | setOffsetInternal (size32_t of) |
| Update the internal stream offset. | |
| virtual String::View | readUTF (size32_t cb) |
| Reads the specified-length UTF-8 data and converts it to a String value. | |
| virtual String::View | convertUTF (size32_t of, size32_t cb) const |
| Convert a UTF-8 encoded section of the binary stream into a String. | |
Protected Attributes | |
|
FinalView < AbstractReadBuffer > | f_vBuf |
| The delegate AbstractReadBuffer. | |
| size32_t | m_of |
| Current stream offset into the delegate AbstractReadBuffer. | |
| AbstractBufferInput | ( | AbstractReadBuffer::View | vBuf | ) | [protected] |
Create a new AbstractBufferInput instance that delegates to the given AbstractReadBuffer.
| vBuf | the delegate AbstractReadBuffer |
| virtual void setOffsetInternal | ( | size32_t | of | ) | [protected, virtual] |
Update the internal stream offset.
| of | the new offset |
| virtual String::View readUTF | ( | size32_t | cb | ) | [protected, virtual] |
Reads the specified-length UTF-8 data and converts it to a String value.
| cb | the number of bytes that the UTF data takes up in the stream |
| UTFDataFormatException | if the bytes that were read were not a valid UTF-8 encoded string | |
| EOFException | if the value could not be read because no more data remains to be read | |
| IOException | if an I/O error occurs |
| virtual String::View convertUTF | ( | size32_t | of, | |
| size32_t | cb | |||
| ) | const [protected, virtual] |
Convert a UTF-8 encoded section of the binary stream into a String.
| of | the offset within the stream | |
| cb | the length in bytes within the stream |
| IOException | on convertion error |
Reimplemented in AbstractOctetArrayReadBuffer::OctetArrayBufferInput.