Package org.apache.fop.afp.fonts
Class CharactersetEncoder
- java.lang.Object
-
- org.apache.fop.afp.fonts.CharactersetEncoder
-
public abstract class CharactersetEncoder extends java.lang.ObjectAn abstraction that wraps the encoding mechanism for encoding a Unicode character sequence into a specified format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCharactersetEncoder.EncodedCharsA container for encoded character bytes
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharactersetEncoder.EncodedCharsencodeSBCS(java.lang.CharSequence chars, java.lang.String encoding)Encodescharsinto a format specified byencoding.
-
-
-
Method Detail
-
encodeSBCS
public static CharactersetEncoder.EncodedChars encodeSBCS(java.lang.CharSequence chars, java.lang.String encoding) throws java.nio.charset.CharacterCodingException
Encodescharsinto a format specified byencoding.- Parameters:
chars- the character sequenceencoding- the encoding type- Returns:
- encoded data
- Throws:
java.nio.charset.CharacterCodingException- if encoding fails
-
-