Package org.apache.fontbox.cff
Class CFFOperator
- java.lang.Object
-
- org.apache.fontbox.cff.CFFOperator
-
public final class CFFOperator extends java.lang.ObjectThis class represents a CFF operator.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Integer,java.lang.String>keyMap
-
Constructor Summary
Constructors Modifier Constructor Description privateCFFOperator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static intcalculateKey(int b0, int b1)static java.lang.StringgetOperator(int b0)Returns the operator name corresponding to the given one byte representation.static java.lang.StringgetOperator(int b0, int b1)Returns the operator name corresponding to the given two byte representation.private static voidregister(int b0, int b1, java.lang.String name)private static voidregister(int b0, java.lang.String name)
-
-
-
Method Detail
-
register
private static void register(int b0, java.lang.String name)
-
register
private static void register(int b0, int b1, java.lang.String name)
-
getOperator
public static java.lang.String getOperator(int b0)
Returns the operator name corresponding to the given one byte representation.- Parameters:
b0- the first byte of the operator- Returns:
- the corresponding operator name
-
getOperator
public static java.lang.String getOperator(int b0, int b1)Returns the operator name corresponding to the given two byte representation.- Parameters:
b0- the first byte of the operatorb1- the second byte of the operator- Returns:
- the corresponding operator name
-
calculateKey
private static int calculateKey(int b0, int b1)
-
-