Package org.apache.pdfbox.pdfparser.xref
Interface XReferenceEntry
- All Superinterfaces:
Comparable<XReferenceEntry>
- All Known Implementing Classes:
AbstractXReference,FreeXReference,NormalXReference,ObjectStreamXReference
An implementing class represents an entry, as it can be found in a PDF's crossreference stream
(
PDFXRefStream). Such an entry shall locate a PDF object/resource in a PDF document.-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value for the first column of the crossreference stream entry.Returns theCOSObjectKeyof the object, that is described by this crossreference stream entry.longReturns the value for the second column of the crossreference stream entry.longReturns the value for the third column of the crossreference stream entry.getType()Returns theXReferenceTypeof this crossreference stream entry.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getType
XReferenceType getType()Returns theXReferenceTypeof this crossreference stream entry.- Returns:
- The
XReferenceTypeof this crossreference stream entry.
-
getReferencedKey
COSObjectKey getReferencedKey()Returns theCOSObjectKeyof the object, that is described by this crossreference stream entry.- Returns:
- The
COSObjectKeyof the object, that is described by this crossreference stream entry.
-
getFirstColumnValue
long getFirstColumnValue()Returns the value for the first column of the crossreference stream entry. (The numeric representation of this entry'sXReferenceType.)- Returns:
- The value for the first column of the crossreference stream entry.
-
getSecondColumnValue
long getSecondColumnValue()Returns the value for the second column of the crossreference stream entry. (It's meaning depends on theXReferenceTypeof this entry.)- Returns:
- The value for the second column of the crossreference stream entry.
-
getThirdColumnValue
long getThirdColumnValue()Returns the value for the third column of the crossreference stream entry. (It's meaning depends on theXReferenceTypeof this entry.)- Returns:
- The value for the third column of the crossreference stream entry.
-