#include "ACEXML/common/CharStream.h"
Inheritance diagram for ACEXML_CharStream:
Public Methods | |
virtual | ~ACEXML_CharStream ()=0 |
Virtual destructor, must have. More... | |
virtual int | available (void)=0 |
Returns the available ACEXML_Char in the buffer. More... | |
virtual int | close (void)=0 |
Close this stream and release all resources used by it. More... | |
virtual int | get (ACEXML_Char &ch)=0 |
Read the next ACEXML_Char. More... | |
virtual int | read (ACEXML_Char *str, size_t len)=0 |
Read the next batch of ACEXML_Char strings. More... | |
virtual int | peek (void)=0 |
Peek the next ACEXML_Char in the CharStream. More... |
The sequence can be read from a file or a character buffer.
|
Virtual destructor, must have.
|
|
Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly. Reimplemented in ACEXML_FileCharStream, ACEXML_HttpCharStream, and ACEXML_StrCharStream. |
|
Close this stream and release all resources used by it.
Reimplemented in ACEXML_FileCharStream, ACEXML_HttpCharStream, and ACEXML_StrCharStream. |
|
Read the next ACEXML_Char. Return -1 if we are not able to return an ACEXML_Char, 0 if EOS is reached, or 1 if succeed. Reimplemented in ACEXML_FileCharStream, ACEXML_HttpCharStream, and ACEXML_StrCharStream. |
|
Peek the next ACEXML_Char in the CharStream. Return the character if succeess, -1 if EOS is reached. Reimplemented in ACEXML_FileCharStream, ACEXML_HttpCharStream, and ACEXML_StrCharStream. |
|
Read the next batch of ACEXML_Char strings.
Reimplemented in ACEXML_FileCharStream, ACEXML_HttpCharStream, and ACEXML_StrCharStream. |