|
Apache Log4cxx
Version 1.5.0
|
Go to the documentation of this file.
18 #ifndef _LOG4CXX_HELPERS_CHARSETDECODER_H
19 #define _LOG4CXX_HELPERS_CHARSETDECODER_H
92 inline static bool isError(log4cxx_status_t stat)
115 #endif //_LOG4CXX_HELPERS_CHARSETENCODER_H
std::basic_string< logchar > LogString
Definition: logstring.h:60
A byte buffer.
Definition: bytebuffer.h:34
static CharsetDecoderPtr getDefaultDecoder()
Get decoder for default charset.
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
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 getISOLatinDecoder()
Get decoder for ISO-8859-1.
virtual ~CharsetDecoder()
Destructor.
static CharsetDecoderPtr getDecoder(const LogString &charset)
Get decoder for specified character set.
static CharsetDecoderPtr getUTF8Decoder()
Get decoder for UTF-8.
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:39
CharsetDecoder()
Protected constructor.
LOG4CXX_PTR_DEF(CharsetDecoder)
static bool isError(log4cxx_status_t stat)
Determins if status value indicates an invalid byte sequence.
Definition: charsetdecoder.h:92
base class for java-like objects.
Definition: object.h:106
An abstract engine to transform a sequences of bytes in a specific charset into a LogString.
Definition: charsetdecoder.h:37
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158