#include <HttpCharStream.h>
An implementation of ACEXML_CharStream for reading input from a URL.
◆ ACEXML_HttpCharStream()
ACEXML_HttpCharStream::ACEXML_HttpCharStream |
( |
void |
| ) |
|
◆ ~ACEXML_HttpCharStream()
ACEXML_HttpCharStream::~ACEXML_HttpCharStream |
( |
void |
| ) |
|
|
virtual |
◆ available()
int ACEXML_HttpCharStream::available |
( |
void |
| ) |
|
|
virtual |
Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly.
Implements ACEXML_CharStream.
◆ close()
int ACEXML_HttpCharStream::close |
( |
void |
| ) |
|
|
virtual |
Close this stream and release all resources used by it.
Implements ACEXML_CharStream.
◆ determine_encoding()
int ACEXML_HttpCharStream::determine_encoding |
( |
void |
| ) |
|
|
virtual |
Determine the encoding of the file.
◆ get()
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.
◆ get_url()
int ACEXML_HttpCharStream::get_url |
( |
size_t & |
len | ) |
|
|
private |
Fetch the URL and save it in backing store.
◆ getEncoding()
const ACEXML_Char * ACEXML_HttpCharStream::getEncoding |
( |
void |
| ) |
|
|
virtual |
◆ getSystemId()
const ACEXML_Char * ACEXML_HttpCharStream::getSystemId |
( |
void |
| ) |
|
|
virtual |
◆ open()
int ACEXML_HttpCharStream::open |
( |
const ACEXML_Char * |
url | ) |
|
◆ peek()
int ACEXML_HttpCharStream::peek |
( |
void |
| ) |
|
|
virtual |
Peek the next ACEXML_Char in the CharStream. Return the character if succeess, -1 if EOS is reached.
Implements ACEXML_CharStream.
◆ read()
int ACEXML_HttpCharStream::read |
( |
ACEXML_Char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
◆ rewind()
void ACEXML_HttpCharStream::rewind |
( |
void |
| ) |
|
|
virtual |
Resets the file pointer to the beginning of the stream.
Implements ACEXML_CharStream.
◆ send_request()
int ACEXML_HttpCharStream::send_request |
( |
void |
| ) |
|
|
private |
Send a HTTP/1.1 request to fetch the contents of the URL.
◆ connector_
◆ data_offset_
ACE_OFF_T ACEXML_HttpCharStream::data_offset_ |
|
private |
◆ encoding_
◆ size_
◆ stream_
◆ url_
◆ url_addr_
The documentation for this class was generated from the following files: