Top Description Fields Constructors Methods
org.apache.pdfbox.pdfparser.xref

public Class FreeXReference

extends AbstractXReference
Class Inheritance
Imports
org.apache.pdfbox.cos.COSObjectKey, org.apache.pdfbox.pdfparser.PDFXRefStream

A class representing a free reference in a PDF's crossreference stream (PDFXRefStream).
Author
Christian Appl

Field Summary

Modifier and TypeField and Description
private final COSObjectKey
private final long
public static final FreeXReference

Constructor Summary

AccessConstructor and Description
public
FreeXReference(COSObjectKey
The key, that shall be set as the free reference of the document.
key
,
long
The object number of the next free object.
nextFreeObject
)

Sets the given COSObjectKey as a free reference in a PDF's crossreference stream (PDFXRefStream).

Method Summary

Modifier and TypeMethod and Description
public COSObjectKey

Returns:

The COSObjectKey of the object, that is described by this crossreference stream entry.
getReferencedKey
()

Implements org.apache.pdfbox.pdfparser.xref.XReferenceEntry.getReferencedKey.

Returns the COSObjectKey of the object, that is described by this crossreference stream entry.

public long

Returns:

The value for the second column of the crossreference stream entry.
getSecondColumnValue
()

Implements org.apache.pdfbox.pdfparser.xref.XReferenceEntry.getSecondColumnValue.

Returns the value for the second column of the crossreference stream entry.

public long

Returns:

The value for the third column of the crossreference stream entry.
getThirdColumnValue
()

Implements org.apache.pdfbox.pdfparser.xref.XReferenceEntry.getThirdColumnValue.

Returns the value for the third column of the crossreference stream entry.

public String

Returns:

A string representation of this crossreference stream entry.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this crossreference stream entry.

Inherited from org.apache.pdfbox.pdfparser.xref.AbstractXReference:
compareTogetFirstColumnValuegetType

Field Detail

keyback to summary
private final COSObjectKey key
nextFreeObjectback to summary
private final long nextFreeObject
NULL_ENTRYback to summary
public static final FreeXReference NULL_ENTRY

Constructor Detail

FreeXReferenceback to summary
public FreeXReference(COSObjectKey key, long nextFreeObject)

Sets the given COSObjectKey as a free reference in a PDF's crossreference stream (PDFXRefStream).

Parameters
key:COSObjectKey

The key, that shall be set as the free reference of the document.

nextFreeObject:long

The object number of the next free object.

Method Detail

getReferencedKeyback to summary
public COSObjectKey getReferencedKey()

Implements org.apache.pdfbox.pdfparser.xref.XReferenceEntry.getReferencedKey.

Returns the COSObjectKey of the object, that is described by this crossreference stream entry.

Returns:COSObjectKey

The COSObjectKey of the object, that is described by this crossreference stream entry.

Annotations
@Override
getSecondColumnValueback to summary
public long getSecondColumnValue()

Implements org.apache.pdfbox.pdfparser.xref.XReferenceEntry.getSecondColumnValue.

Returns the value for the second column of the crossreference stream entry. (This is the object number of the set next free COSObjectKey - for entries of this type.)

Returns:long

The value for the second column of the crossreference stream entry.

Annotations
@Override
getThirdColumnValueback to summary
public long getThirdColumnValue()

Implements org.apache.pdfbox.pdfparser.xref.XReferenceEntry.getThirdColumnValue.

Returns the value for the third column of the crossreference stream entry. (This is the generation number of the set next free COSObjectKey - for entries of this type.)

Returns:long

The value for the third column of the crossreference stream entry.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this crossreference stream entry.

Returns:String

A string representation of this crossreference stream entry.

Annotations
@Override