CharsetDecoder Class Reference
An abstract engine to transform a sequences of bytes in a specific charset into a LogString.
More...
Inherits log4cxx::helpers::ObjectImpl.
List of all members.
Detailed Description
An abstract engine to transform a sequences of bytes in a specific charset into a LogString.
Constructor & Destructor Documentation
Member Function Documentation
Decodes as many bytes as possible from the given input buffer, writing the results to the given output string.
- Parameters:
-
| in | input buffer. |
| out | output string. |
- Returns:
- APR_SUCCESS if not encoding errors were found.
static CharsetDecoderPtr getDecoder |
( |
const LogString & |
charset |
) |
[static] |
Get decoder for specified character set.
- Parameters:
-
| charset | the following values should be recognized: "US-ASCII", "ISO-8859-1", "UTF-8", "UTF-16BE", "UTF-16LE". |
- Returns:
- decoder
- Exceptions:
-
static CharsetDecoderPtr getDefaultDecoder |
( |
|
) |
[static] |
Get decoder for default charset.
static CharsetDecoderPtr getISOLatinDecoder |
( |
|
) |
[static] |
Get decoder for ISO-8859-1.
static CharsetDecoderPtr getUTF8Decoder |
( |
|
) |
[static] |
Determins if status value indicates an invalid byte sequence.
The documentation for this class was generated from the following file: