Package org.apache.fop.pdf
Class PDFEncoding.DifferencesBuilder
java.lang.Object
org.apache.fop.pdf.PDFEncoding.DifferencesBuilder
- Enclosing class:
PDFEncoding
Builder class for constructing the Differences array.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addDifference
(int code, PDFArray differences) Start a new difference.private void
Adds a character name to the current difference.buildDifferencesArray
(SingleByteEncoding encodingA, SingleByteEncoding encodingB) Creates an array containing the differences between two single-byte.
-
Field Details
-
currentCode
private int currentCode
-
-
Constructor Details
-
DifferencesBuilder
public DifferencesBuilder()
-
-
Method Details
-
buildDifferencesArray
Creates an array containing the differences between two single-byte. font encodings.- Parameters:
encodingA
- The first single-byte encodingencodingB
- The second single-byte encoding- Returns:
- The PDFArray of differences between encodings
-
addDifference
Start a new difference.- Parameters:
code
- the starting code index inside the encoding
-
addName
Adds a character name to the current difference.- Parameters:
name
- the character name
-