Public Member Functions | |
| virtual | ~CharsetEncoder () |
| Destructor. | |
| virtual log4cxx_status_t | encode (const LogString &in, LogString::const_iterator &iter, ByteBuffer &out)=0 |
| Encodes as many characters from the input string as possible to the output buffer. | |
| virtual void | reset () |
| Resets any internal state. | |
| virtual void | flush (ByteBuffer &out) |
| Flushes the encoder. | |
Static Public Member Functions | |
| static CharsetEncoderPtr | getDefaultEncoder () |
| Get encoder for default charset. | |
| static CharsetEncoderPtr | getEncoder (const LogString &charset) |
| Get encoder for specified character set. | |
| static CharsetEncoderPtr | getUTF8Encoder () |
| Get encoder for UTF-8. | |
| static void | encode (CharsetEncoderPtr &enc, const LogString &src, LogString::const_iterator &iter, ByteBuffer &dst) |
| Encodes a string replacing unmappable characters with escape sequences. | |
| static bool | isError (log4cxx_status_t stat) |
| Determines if the return value from encode indicates an unconvertable character. | |
Protected Member Functions | |
| CharsetEncoder () | |
| Protected constructor. | |
|
|
Protected constructor.
|
|
|
Destructor.
|
|
||||||||||||||||
|
Encodes as many characters from the input string as possible to the output buffer.
|
|
||||||||||||||||||||
|
Encodes a string replacing unmappable characters with escape sequences.
|
|
|
Flushes the encoder.
|
|
|
Get encoder for default charset.
|
|
|
Get encoder for specified character set.
|
|
|
Get encoder for UTF-8.
|
|
|
Determines if the return value from encode indicates an unconvertable character.
|
|
|
Resets any internal state.
|