18#ifndef _LOG4CXX_HELPERS_CHARSETDECODER_H
19#define _LOG4CXX_HELPERS_CHARSETDECODER_H
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:106
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_PTR_DEF(T)
Definition: log4cxx.h:64
#define LOG4CXX_NS
Definition: log4cxx.h:104
std::basic_string< logchar > LogString
Definition: logstring.h:60
int log4cxx_status_t
Definition: log4cxx.h:113
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146