org.apache.fop.pdf

Class PDFEncoding.DifferencesBuilder

Enclosing Class:
PDFEncoding

public class PDFEncoding.DifferencesBuilder
extends java.lang.Object

Builder class for constructing the Differences array.

Method Summary

PDFEncoding.DifferencesBuilder
addDifference(int code)
Start a new difference.
PDFEncoding.DifferencesBuilder
addName(String name)
Adds a character name to the current difference.
PDFArray
toPDFArray()
Creates and returns the PDFArray representing the Differences entry.

Method Details

addDifference

public PDFEncoding.DifferencesBuilder addDifference(int code)
Start a new difference.
Parameters:
code - the starting code index inside the encoding
Returns:
this builder instance

addName

public PDFEncoding.DifferencesBuilder addName(String name)
Adds a character name to the current difference.
Parameters:
name - the character name
Returns:
this builder instance

toPDFArray

public PDFArray toPDFArray()
Creates and returns the PDFArray representing the Differences entry.
Returns:
the Differences entry

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.