#include "common/StrCharStream.h"
Inheritance diagram for ACEXML_StrCharStream:


Public Methods | |
| ACEXML_StrCharStream (void) | |
| Default constructor. More... | |
| ACEXML_StrCharStream (const ACEXML_Char *str) | |
| Initializing Constructor. More... | |
| virtual | ~ACEXML_StrCharStream (void) |
| Destructor. More... | |
| int | open (const ACEXML_Char *str) |
| Initializing and reset the StrCharStream with str. More... | |
| virtual int | available (void) |
| Returns the available ACEXML_Char in the buffer. More... | |
| virtual int | close (void) |
| Close this stream and release all resources used by it. More... | |
| virtual int | determine_encoding (void) |
| Determine the encoding of the file. More... | |
| virtual int | get (ACEXML_Char &ch) |
| Read the next ACEXML_Char. More... | |
| virtual int | read (ACEXML_Char *str, size_t len) |
| Read the next batch of ACEXML_Char strings. More... | |
| virtual int | peek (void) |
| Peek the next ACEXML_Char in the CharStream. More... | |
| virtual const ACEXML_Char * | getEncoding (void) |
| virtual void | rewind (void) |
| Resets the pointer to the beginning of the stream. More... | |
Private Attributes | |
| ACEXML_Char * | start_ |
| ACEXML_Char * | ptr_ |
| ACEXML_Char * | end_ |
| ACEXML_Char * | encoding_ |
|
|
Default constructor.
|
|
|
Initializing Constructor.
|
|
|
Destructor.
|
|
|
Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly. Reimplemented from ACEXML_CharStream. |
|
|
Close this stream and release all resources used by it.
Reimplemented from ACEXML_CharStream. |
|
|
Determine the encoding of the file.
|
|
|
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 from ACEXML_CharStream. |
|
|
Reimplemented from ACEXML_CharStream. |
|
|
Initializing and reset the StrCharStream with str.
|
|
|
Peek the next ACEXML_Char in the CharStream. Return the character if succeess, -1 if EOS is reached. Reimplemented from ACEXML_CharStream. |
|
||||||||||||
|
Read the next batch of ACEXML_Char strings.
Reimplemented from ACEXML_CharStream. |
|
|
Resets the pointer to the beginning of the stream.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001