18#ifndef _LOG4CXX_HELPERS_CHARSETDECODER_H
19#define _LOG4CXX_HELPERS_CHARSETDECODER_H
92 inline static bool isError(log4cxx_status_t stat)
A byte buffer.
Definition: bytebuffer.h:34
An abstract engine to transform a sequences of bytes in a specific charset into a LogString.
Definition: charsetdecoder.h:37
static CharsetDecoderPtr getDefaultDecoder()
Get decoder for default charset.
static CharsetDecoderPtr getISOLatinDecoder()
Get decoder for ISO-8859-1.
static bool isError(log4cxx_status_t stat)
Determins if status value indicates an invalid byte sequence.
Definition: charsetdecoder.h:92
virtual log4cxx_status_t decode(ByteBuffer &in, LogString &out)=0
Decodes as many bytes as possible from the given input buffer, writing the results to the given outpu...
static CharsetDecoderPtr getUTF8Decoder()
Get decoder for UTF-8.
CharsetDecoder()
Protected constructor.
virtual ~CharsetDecoder()
Destructor.
static CharsetDecoderPtr getDecoder(const LogString &charset)
Get decoder for specified character set.
base class for java-like objects.
Definition: object.h:105
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:38
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145