XRefEntry

Overview

XRefEntry is a class in Aspose.Pdf FOSS for Java.

Represents a single cross-reference entry in a PDF file.

Properties

NameTypeAccessDescription
typeTypeReadReturns the entry type.
objectNumberintReadReturns the object number.
generationNumberintReadReturns the generation number.
byteOffsetlongReadReturns the byte offset for IN_USE entries.
objectStreamNumberintReadReturns the object stream number for COMPRESSED entries.
indexWithinStreamintReadReturns the index within the object stream for COMPRESSED entries.

Methods

SignatureDescription
inUse(objectNumber: int, generationNumber: int, byteOffset: long)XRefEntryCreates an in-use entry with a byte offset in the file.
free(objectNumber: int, generationNumber: int, nextFreeObjectNumber: long)XRefEntryCreates a free entry (deleted object).
compressed(objectNumber: int, objectStreamNumber: int, indexWithinStream: int)XRefEntryCreates a compressed entry stored in an object stream.
getType()TypeReturns the entry type.
getObjectNumber()intReturns the object number.
getGenerationNumber()intReturns the generation number.
getByteOffset()longReturns the byte offset for IN_USE entries.
getObjectStreamNumber()intReturns the object stream number for COMPRESSED entries.
getIndexWithinStream()intReturns the index within the object stream for COMPRESSED entries.
toString()String

See Also