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
Nested ClassesModifier and TypeClassDescriptionstatic classA container for encoded character bytes -
Method Summary
Modifier and TypeMethodDescriptionencodeSBCS(CharSequence chars, String encoding) Encodescharsinto a format specified byencoding.
-
Method Details
-
encodeSBCS
public static CharactersetEncoder.EncodedChars encodeSBCS(CharSequence chars, String encoding) throws CharacterCodingException Encodescharsinto a format specified byencoding.- Parameters:
chars- the character sequenceencoding- the encoding type- Returns:
- encoded data
- Throws:
CharacterCodingException- if encoding fails
-