Package org.apache.fop.afp.fonts
Class CharactersetEncoder
java.lang.Object
org.apache.fop.afp.fonts.CharactersetEncoder
An abstraction that wraps the encoding mechanism for encoding a Unicode character sequence into a
specified format.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A container for encoded character bytes -
Method Summary
Modifier and TypeMethodDescriptionencodeSBCS
(CharSequence chars, String encoding) Encodeschars
into a format specified byencoding
.
-
Method Details
-
encodeSBCS
public static CharactersetEncoder.EncodedChars encodeSBCS(CharSequence chars, String encoding) throws CharacterCodingException Encodeschars
into a format specified byencoding
.- Parameters:
chars
- the character sequenceencoding
- the encoding type- Returns:
- encoded data
- Throws:
CharacterCodingException
- if encoding fails
-