diff options
author | kitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-05-30 03:31:49 +0000 |
---|---|---|
committer | kitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-05-30 03:31:49 +0000 |
commit | 25b7d5bacbc7c7c1968928f676420f19f59e0969 (patch) | |
tree | eb96ffb2db36d1e7a74345f2a7828a84c64ca208 /ACEXML/common/HttpCharStream.h | |
parent | 2b52146b0b0823b5110ee33b0028e460cb53ce74 (diff) | |
download | ATCD-25b7d5bacbc7c7c1968928f676420f19f59e0969.tar.gz |
ChangeLogTag: Thu May 29 22:03:40 2003 Krishnakumar B <kitty@spam.invalid.domain>
Diffstat (limited to 'ACEXML/common/HttpCharStream.h')
-rw-r--r-- | ACEXML/common/HttpCharStream.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/ACEXML/common/HttpCharStream.h b/ACEXML/common/HttpCharStream.h index 7bce23a224b..75c98ecbaf7 100644 --- a/ACEXML/common/HttpCharStream.h +++ b/ACEXML/common/HttpCharStream.h @@ -62,8 +62,7 @@ public: /** * Read the next batch of ACEXML_Char strings */ - virtual int read (ACEXML_Char *str, - size_t len); + virtual int read (ACEXML_Char *str, size_t len); /** * Peek the next ACEXML_Char in the CharStream. Return the @@ -77,12 +76,39 @@ public: virtual void rewind (void); /** + * Determine the encoding of the file. + */ + virtual int determine_encoding (void); + + /** * Get the encoding of the file */ virtual const ACEXML_Char* getEncoding (void); + /* + * Get the systemId for the underlying CharStream + */ + virtual const ACEXML_Char* getSystemId (void); + + private: +#if defined (ACE_USES_WCHAR) + /** + * Read the next character from the stream taking into account the + * encoding of the file. + */ + int get_i (ACEXML_Char& ch); + + /** + * Read the next character from the stream taking into account the + * encoding of the file. Subsequent call to get() returns this + * character. + */ + int peek_i (void); + +#endif /* ACE_USES_WCHAR */ + /** * Send a HTTP/1.1 request to fetch the contents of the URL. */ |