Package org.apache.fop.pdf.xref
Class CompressedObjectReference
java.lang.Object
org.apache.fop.pdf.xref.CompressedObjectReference
- All Implemented Interfaces:
ObjectReference
A reference to an indirect object stored in an object stream. Contains the relevant
information to add to a cross-reference stream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final PDFObjectNumber
private final PDFObjectNumber
-
Constructor Summary
ConstructorsConstructorDescriptionCompressedObjectReference
(PDFObjectNumber objectNumber, PDFObjectNumber objectStreamNumber, int index) Creates a new reference. -
Method Summary
Modifier and TypeMethodDescriptionvoid
output
(DataOutputStream out) Outputs this reference to the given stream, in the cross-reference stream format.
-
Field Details
-
objectNumber
-
objectStreamNumber
-
index
private final int index
-
-
Constructor Details
-
CompressedObjectReference
public CompressedObjectReference(PDFObjectNumber objectNumber, PDFObjectNumber objectStreamNumber, int index) Creates a new reference.- Parameters:
objectNumber
- the number of the compressed object being referencedobjectStreamNumber
- the number of the object stream in which the compressed object is to be foundindex
- the index of the compressed object in the object stream
-
-
Method Details
-
output
Description copied from interface:ObjectReference
Outputs this reference to the given stream, in the cross-reference stream format. For example, a object may output the bytes 01 00 00 00 00 00 00 01 ff 00 to indicate a non-compressed object (01), at offset 511 from the beginning of the file (00 00 00 00 00 00 01 ff), of generation number 0 (00).- Specified by:
output
in interfaceObjectReference
- Parameters:
out
- the stream to which to output the reference- Throws:
IOException
-
getObjectNumber
-
getObjectStreamNumber
-