Package org.apache.fop.pdf.xref
Class CrossReferenceStream
java.lang.Object
org.apache.fop.pdf.xref.CrossReferenceObject
org.apache.fop.pdf.xref.CrossReferenceStream
A cross-reference stream, as described in Section 3.4.7 of the PDF 1.5 Reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PDFDocument
private final int
private final List
<ObjectReference> private static final PDFName
Fields inherited from class org.apache.fop.pdf.xref.CrossReferenceObject
startxref, trailerDictionary
-
Constructor Summary
ConstructorsConstructorDescriptionCrossReferenceStream
(PDFDocument document, int objectNumber, TrailerDictionary trailerDictionary, long startxref, List<Long> uncompressedObjectReferences, List<CompressedObjectReference> compressedObjectReferences) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
output
(OutputStream stream) Writes the cross reference data to a PDF streamprivate void
-
Field Details
-
XREF
-
document
-
objectNumber
private final int objectNumber -
objectReferences
-
-
Constructor Details
-
CrossReferenceStream
public CrossReferenceStream(PDFDocument document, int objectNumber, TrailerDictionary trailerDictionary, long startxref, List<Long> uncompressedObjectReferences, List<CompressedObjectReference> compressedObjectReferences)
-
-
Method Details
-
output
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:
IOException
- if an I/O exception occurs while writing the data
-
populateDictionary
- Throws:
IOException
-
addFreeEntryForObject0
- Throws:
IOException
-