#include <Encoding.h>
Inheritance diagram for acdk::locale::Encoding:
Public Member Functions | |
virtual REncoder | getEncoder (CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)=0 |
virtual RDecoder | getDecoder (CodingErrorAction onMalformed=ReportCodingError, CodingErrorAction onUnmappable=ReplaceCodingError)=0 |
RString | getName () |
name of this encoding | |
virtual float | averageBytesPerChar ()=0 |
return the average bytes used to encode one character | |
virtual float | maxBytesPerChar ()=0 |
return the maximum count of bytes use to encode one character | |
Static Public Member Functions | |
REncoding | getEncoding () throw ( RIllegalCharsetNameException ) |
return the standard encoding This will use the system property user.encoding to determine the encoding. | |
void | setEncoding (IN(REncoding) encoding) |
set the standard encoding | |
REncoding | getEncoding (IN(RString) name) throw ( RIllegalCharsetNameException ) |
retrive encoding by name | |
REncoding | findEncoding (IN(RString) name) |
same as getEncoding, but does not throw an exception if encoding was not found | |
REncoding | getCEscapeEncoding () |
see CEscapeEncoding | |
REncoding | getAsciiEncoding () |
see AsciiEncoding | |
REncoding | getUnicodeEscapeEncoding () |
see AsciiUtfEncoding::getAsciiUtfEncoding | |
REncoding | getUnicodeCEscapeEncoding () |
see AsciiUtfEncoding::getAsciiUtfCEscapeEncoding() | |
RStringArray | getAvailableEncodings () |
returns all available encodings | |
void | registerEncoding (IN(RString) name, EncodingCreator creator) |
register known Encodings | |
Protected Member Functions | |
Encoding (IN(RString) name) | |
Protected Attributes | |
RString | _name |
|
|
|
return the average bytes used to encode one character
Implemented in acdk::locale::AsciiEncoding, acdk::locale::AsciiUtfEncoding, acdk::locale::ByteAsciiEncoding, acdk::locale::CEscapeEncoding, acdk::locale::IsoEncoding, acdk::locale::UCS2Encoding, acdk::locale::UTF8Encoding, and acdk::net::URLEncoding. |
|
same as getEncoding, but does not throw an exception if encoding was not found
|
|
see AsciiEncoding
Reimplemented in acdk::locale::AsciiEncoding. |
|
returns all available encodings
Reimplemented in acdk::locale::IsoEncoding. |
|
see CEscapeEncoding
|
|
|
|
retrive encoding by name
|
|
return the standard encoding This will use the system property user.encoding to determine the encoding. if this is not set returns ASCII
|
|
name of this encoding
Reimplemented from acdk::lang::Object. |
|
see AsciiUtfEncoding::getAsciiUtfCEscapeEncoding()
|
|
see AsciiUtfEncoding::getAsciiUtfEncoding
|
|
return the maximum count of bytes use to encode one character
Implemented in acdk::locale::AsciiEncoding, acdk::locale::AsciiUtfEncoding, acdk::locale::ByteAsciiEncoding, acdk::locale::CEscapeEncoding, acdk::locale::IsoEncoding, acdk::locale::UCS2Encoding, acdk::locale::UTF8Encoding, and acdk::net::URLEncoding. |
|
register known Encodings
|
|
set the standard encoding
|
|
|