Package org.verapdf.pd.font
Class Encoding
- java.lang.Object
-
- org.verapdf.pd.font.Encoding
-
public class Encoding extends Object
Represents encoding of font as given in font dictionary.- Author:
- Sergey Shemyakov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsCode(int code)
Checks if mapping for given code is available.static Encoding
empty()
String
getName(int code)
Gets name of char for it's code via this encoding.
-
-
-
Method Detail
-
empty
public static Encoding empty()
-
getName
public String getName(int code)
Gets name of char for it's code via this encoding.- Parameters:
code
- is character code.- Returns:
- glyph name for given character code or null if the internal font encoding should be used.
-
containsCode
public boolean containsCode(int code)
Checks if mapping for given code is available.- Parameters:
code
- is character code to check.- Returns:
- true if encoding has mapping for this code.
-
-