18 #ifndef _LOG4CXX_HELPERS_CHARSETDECODER_H 19 #define _LOG4CXX_HELPERS_CHARSETDECODER_H 21 #include <log4cxx/helpers/objectimpl.h> 28 LOG4CXX_PTR_DEF(CharsetDecoder);
40 BEGIN_LOG4CXX_CAST_MAP()
42 END_LOG4CXX_CAST_MAP()
57 static CharsetDecoderPtr getDefaultDecoder();
66 static CharsetDecoderPtr getDecoder(
const LogString& charset);
71 static CharsetDecoderPtr getUTF8Decoder();
75 static CharsetDecoderPtr getISOLatinDecoder();
86 virtual log4cxx_status_t decode(
ByteBuffer& in,
92 inline static bool isError(log4cxx_status_t stat)
115 #endif //_LOG4CXX_HELPERS_CHARSETENCODER_H An abstract engine to transform a sequences of bytes in a specific charset into a LogString...
Definition: charsetdecoder.h:36
Implementation class for Object.
Definition: objectimpl.h:28
A byte buffer.
Definition: bytebuffer.h:33
Definition: appender.h:33
static bool isError(log4cxx_status_t stat)
Determins if status value indicates an invalid byte sequence.
Definition: charsetdecoder.h:92