#include "ACEXML/common/HttpCharStream.h"
Inheritance diagram for ACEXML_HttpCharStream:


Public Methods | |
| ACEXML_HttpCharStream (void) | |
| Default constructor. More... | |
| virtual | ~ACEXML_HttpCharStream (void) |
| Destructor. More... | |
| int | open (const ACEXML_Char *url) |
| Open an URL. 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 | 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 void | rewind (void) |
| Resets the file pointer to the beginning of the stream. More... | |
| virtual const ACEXML_Char * | getEncoding (void) |
| Get the encoding of the file. More... | |
Private Methods | |
| int | send_request (void) |
| Send a HTTP/1.1 request to fetch the contents of the URL. More... | |
| int | get_url (size_t &len) |
| Fetch the URL and save it in backing store. More... | |
Private Attributes | |
| ACEXML_Char * | url_ |
| ACEXML_URL_Addr * | url_addr_ |
| ACEXML_Mem_Map_Stream * | stream_ |
| Connector * | connector_ |
| off_t | size_ |
| ACEXML_Char * | encoding_ |
|
|
Default 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. |
|
|
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. |
|
|
Fetch the URL and save it in backing store.
|
|
|
Get the encoding of the file.
Reimplemented from ACEXML_CharStream. |
|
|
Open an URL.
|
|
|
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 file pointer to the beginning of the stream.
|
|
|
Send a HTTP/1.1 request to fetch the contents of the URL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001