Package org.apache.fop.pdf
Class PDFEncoding.DifferencesBuilder
- java.lang.Object
-
- org.apache.fop.pdf.PDFEncoding.DifferencesBuilder
-
- Enclosing class:
- PDFEncoding
public class PDFEncoding.DifferencesBuilder extends java.lang.Object
Builder class for constructing the Differences array.
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentCode
-
Constructor Summary
Constructors Constructor Description DifferencesBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addDifference(int code, PDFArray differences)
Start a new difference.private void
addName(java.lang.String name, PDFArray differences)
Adds a character name to the current difference.PDFArray
buildDifferencesArray(SingleByteEncoding encodingA, SingleByteEncoding encodingB)
Creates an array containing the differences between two single-byte.
-
-
-
Method Detail
-
buildDifferencesArray
public PDFArray buildDifferencesArray(SingleByteEncoding encodingA, SingleByteEncoding encodingB)
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
private void addDifference(int code, PDFArray differences)
Start a new difference.- Parameters:
code
- the starting code index inside the encoding
-
addName
private void addName(java.lang.String name, PDFArray differences)
Adds a character name to the current difference.- Parameters:
name
- the character name
-
-