#include <FileCharStream.h>
Inheritance diagram for ACEXML_FileCharStream:


Public Methods | |
| ACEXML_FileCharStream (void) | |
| Default constructor. | |
| virtual | ~ACEXML_FileCharStream (void) |
| Destructor. | |
| int | open (const ACEXML_Char *name) |
| Open a file. | |
| virtual int | available (void) |
| virtual int | close (void) |
| virtual int | get (ACEXML_Char &ch) |
| virtual int | read (ACEXML_Char *str, size_t len) |
| virtual int | determine_encoding (void) |
| virtual int | peek (void) |
| virtual void | rewind (void) |
| virtual const ACEXML_Char * | getEncoding (void) |
| virtual const ACEXML_Char * | getSystemId (void) |
Private Methods | |
| int | getchar_i (char &ch) |
Private Attributes | |
| ACEXML_Char * | filename_ |
| ACEXML_Char * | encoding_ |
| off_t | size_ |
| FILE * | infile_ |
| ACEXML_Char | peek_ |
|
|
Default constructor.
|
|
|
Destructor.
|
|
|
Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly. Implements ACEXML_CharStream. |
|
|
Close this stream and release all resources used by it. Implements 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 succees. Implements ACEXML_CharStream. |
|
|
Read the next character as a normal character. Return -1 if EOF is reached, else return 0. |
|
|
Implements ACEXML_CharStream. |
|
|
Implements ACEXML_CharStream. |
|
|
Open a file.
|
|
|
Peek the next ACEXML_Char in the CharStream. Return the character if success, -1 if EOF is reached. Implements ACEXML_CharStream. |
|
||||||||||||
|
Read the next batch of ACEXML_Char strings Implements ACEXML_CharStream. |
|
|
Resets the file pointer to the beginning of the stream. Implements ACEXML_CharStream. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18