Inheritance diagram for lfc::BufferedInput::

Public Methods | |
| BufferedInput (_Input< TYPE > &rInputBase, long bufferSize=DEFAULT_BUFFER_SIZE) | |
| ~BufferedInput () throw () | |
| virtual void | setBufferSize (long bufferSize) |
| Sets the buffer size. More... | |
| virtual long | bufferSize () const throw () |
| |
| virtual long | read (TYPE *buffer, long count, bool bWaitAll=true) |
| Reads from this stream. More... | |
| virtual bool | hasMore () const |
| Indicates whether there is more data to read from this stream. More... | |
| virtual TYPE | pop () |
| |
| virtual void | resetInput () |
| \brief Resets the input. More... | |
Static Public Attributes | |
| const long | DEFAULT_BUFFER_SIZE = 1024L |
| the default size of the buffer used by this class. More... | |
Protected Methods | |
| virtual long | readFromBase (long wantCnt, bool bWaitAll) |
| A function which actually makes a read() call to the underlying input stream. More... | |
Protected Attributes | |
| TYPE * | m_buffer |
| the actual buffer. More... | |
| long | m_bufferSize |
| its size. More... | |
| long | m_bufferPosition |
| where we are in the buffer. More... | |
| long | m_bufferUse |
| how much of the buffer is used. More... | |
|
||||||||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
Sets the buffer size. An exception is thrown if the amount of unread data currently in the buffer exceeds the new buffer size. It is extremely unadvisable to make a call to this method unless the new buffer size is larger than the old. This method is largely here for symmetry with BufferedOutput::setBufferSize |
|
|||||||||
|
|
|
||||||||||||||||||||
|
Reads from this stream.
Reimplemented from lfc::_Input. |
|
|||||||||
|
Indicates whether there is more data to read from this stream.
Reimplemented from lfc::_Input. |
|
|||||||||
|
Reimplemented from lfc::_Input. |
|
|||||||||
|
\brief Resets the input.
Reimplemented from lfc::_Input. |
|
||||||||||||||||
|
A function which actually makes a read() call to the underlying input stream.
|
|
|||||
|
the default size of the buffer used by this class.
|
|
|||||
|
the actual buffer.
|
|
|||||
|
its size.
|
|
|||||
|
where we are in the buffer.
|
|
|||||
|
how much of the buffer is used.
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001