18 #ifndef _LOG4CXX_HELPERS_CHARSETDECODER_H
19 #define _LOG4CXX_HELPERS_CHARSETDECODER_H
102 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:102
log4cxx_status_t decode(const char *in, size_t maxByteCount, LogString &out)
Decodes up to maxByteCount bytes from in, appending the result onto out.
virtual log4cxx_status_t decode(ByteBuffer &in, LogString &out)=0
Decodes as many bytes as possible from in, appending the result onto out.
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:102
LOG4CXX_PTR_DEF(CharsetDecoder)
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:154
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:148
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:142