Package org.apache.fop.pdf.xref
Class CrossReferenceTable
- java.lang.Object
-
- org.apache.fop.pdf.xref.CrossReferenceObject
-
- org.apache.fop.pdf.xref.CrossReferenceTable
-
public class CrossReferenceTable extends CrossReferenceObject
A cross-reference table, as described in Section 3.4.3 of the PDF 1.5 Reference.
-
-
Field Summary
Fields Modifier and Type Field Description private int
first
private int
last
private java.util.List<java.lang.Long>
objectReferences
private java.lang.StringBuilder
pdf
private int
size
-
Fields inherited from class org.apache.fop.pdf.xref.CrossReferenceObject
startxref, trailerDictionary
-
-
Constructor Summary
Constructors Constructor Description CrossReferenceTable(TrailerDictionary trailerDictionary, long startxref, java.util.List<java.lang.Long> location, int first, int last, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
output(java.io.OutputStream stream)
Writes the cross reference data to a PDF streamprivate void
outputXref()
private void
writeTrailer(java.io.OutputStream stream)
-
-
-
Constructor Detail
-
CrossReferenceTable
public CrossReferenceTable(TrailerDictionary trailerDictionary, long startxref, java.util.List<java.lang.Long> location, int first, int last, int size)
-
-
Method Detail
-
output
public void output(java.io.OutputStream stream) throws java.io.IOException
Description copied from class:CrossReferenceObject
Writes the cross reference data to a PDF stream- Specified by:
output
in classCrossReferenceObject
- Parameters:
stream
- the stream to write the cross reference to- Throws:
java.io.IOException
- if an I/O exception occurs while writing the data
-
outputXref
private void outputXref() throws java.io.IOException
- Throws:
java.io.IOException
-
writeTrailer
private void writeTrailer(java.io.OutputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
-