Top Description Fields Constructors Methods
org.apache.fontbox.cff

public final Class CFFOperator

extends Object
Class Inheritance
Imports
java.util.LinkedHashMap, .Map

This class represents a CFF operator.
Author
Villu Ruusmann

Field Summary

Modifier and TypeField and Description
private static final Map<Integer, String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static int
calculateKey(int b0, int b1)

public static String

Returns:

the corresponding operator name
getOperator
(int
the first byte of the operator
b0
)

Returns the operator name corresponding to the given one byte representation.

public static String

Returns:

the corresponding operator name
getOperator
(int
the first byte of the operator
b0
,
int
the second byte of the operator
b1
)

Returns the operator name corresponding to the given two byte representation.

private static void
register(int b0, String name)

private static void
register(int b0, int b1, String name)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyMapback to summary
private static final Map<Integer, String> keyMap

Constructor Detail

CFFOperatorback to summary
private CFFOperator()

Method Detail

calculateKeyback to summary
private static int calculateKey(int b0, int b1)
getOperatorback to summary
public static String getOperator(int b0)

Returns the operator name corresponding to the given one byte representation.

Parameters
b0:int

the first byte of the operator

Returns:String

the corresponding operator name

getOperatorback to summary
public static String getOperator(int b0, int b1)

Returns the operator name corresponding to the given two byte representation.

Parameters
b0:int

the first byte of the operator

b1:int

the second byte of the operator

Returns:String

the corresponding operator name

registerback to summary
private static void register(int b0, String name)
registerback to summary
private static void register(int b0, int b1, String name)