#include <HttpCharStream.h>
Inheritance diagram for ACEXML_HttpCharStream:


Public Methods | |
| ACEXML_HttpCharStream (void) | |
| Default constructor. | |
| virtual | ~ACEXML_HttpCharStream (void) |
| Destructor. | |
| int | open (const ACEXML_Char *url) |
| Open an URL. | |
| 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 | peek (void) |
| virtual void | rewind (void) |
| virtual const ACEXML_Char * | getEncoding (void) |
Private Methods | |
| int | send_request (void) |
| int | get_url (size_t &len) |
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. Implements ACEXML_CharStream. |
|
|
Close this stream and release all resources used by it. Implements 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. Implements ACEXML_CharStream. |
|
|
Fetch the URL and save it in backing store. |
|
|
Get the encoding of the file Implements ACEXML_CharStream. |
|
|
Open an URL.
|
|
|
Peek the next ACEXML_Char in the CharStream. Return the character if succeess, -1 if EOS 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. |
|
|
Send a HTTP/1.1 request to fetch the contents of the URL. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18