activemq-cpp-3.4.0
|
A Readable is a source of characters. More...
#include <src/main/decaf/lang/Readable.h>
Public Member Functions | |
virtual | ~Readable () |
virtual int | read (decaf::nio::CharBuffer *charBuffer)=0 |
Attempts to read characters into the specified character buffer. |
A Readable is a source of characters.
Characters from a Readable are made available to callers of the read method via a CharBuffer.
virtual decaf::lang::Readable::~Readable | ( | ) | [inline, virtual] |
virtual int decaf::lang::Readable::read | ( | decaf::nio::CharBuffer * | charBuffer | ) | [pure virtual] |
Attempts to read characters into the specified character buffer.
The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation. No flipping or rewinding of the buffer is performed.
charBuffer | The Buffer to read Characters into. |
IOException | if an I/O error occurs. |
NullPointerException | if buffer is NULL. |
ReadOnlyBufferException | if charBuffer is a read only buffer. |
Implemented in decaf::io::Reader.