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

public Class ObjectStreamXReference

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

A class representing a reference to an object stream entry in a PDF's crossreference stream (PDFXRefStream).
Author
Christian Appl

Field Summary

Modifier and TypeField and Description
private final COSObjectKey
private final COSBase
private final int
private final COSObjectKey

Constructor Summary

AccessConstructor and Description
public
ObjectStreamXReference(int
The index of the COSObject in the containing object stream.
objectStreamIndex
,
COSObjectKey
The COSObjectKey, that is represented by this entry.
key
,
COSBase
The COSObject, that is represented by this entry.
object
,
COSObjectKey
The COSObjectKey of the object stream, that is containing the object.
parentKey
)

Prepares a object stream entry reference for the given COSObject in a PDF's crossreference stream (PDFXRefStream).

Method Summary

Modifier and TypeMethod and Description
public COSBase

Returns:

The COSObject, that is described by this crossreference stream entry.
getObject
()

Returns the COSObject, that is described by this crossreference stream entry.

public int

Returns:

The index of the COSObject in it's containing object stream.
getObjectStreamIndex
()

Returns the index of the COSObject in it's containing object stream.

public COSObjectKey

Returns:

The COSObjectKey of the object stream, that is containing the object.
getParentKey
()

Returns the COSObjectKey of the object stream, that is containing the object.

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
objectback to summary
private final COSBase object
objectStreamIndexback to summary
private final int objectStreamIndex
parentKeyback to summary
private final COSObjectKey parentKey

Constructor Detail

ObjectStreamXReferenceback to summary
public ObjectStreamXReference(int objectStreamIndex, COSObjectKey key, COSBase object, COSObjectKey parentKey)

Prepares a object stream entry reference for the given COSObject in a PDF's crossreference stream (PDFXRefStream).

Parameters
objectStreamIndex:int

The index of the COSObject in the containing object stream.

key:COSObjectKey

The COSObjectKey, that is represented by this entry.

object:COSBase

The COSObject, that is represented by this entry.

parentKey:COSObjectKey

The COSObjectKey of the object stream, that is containing the object.

Method Detail

getObjectback to summary
public COSBase getObject()

Returns the COSObject, that is described by this crossreference stream entry.

Returns:COSBase

The COSObject, that is described by this crossreference stream entry.

getObjectStreamIndexback to summary
public int getObjectStreamIndex()

Returns the index of the COSObject in it's containing object stream.

Returns:int

The index of the COSObject in it's containing object stream.

getParentKeyback to summary
public COSObjectKey getParentKey()

Returns the COSObjectKey of the object stream, that is containing the object.

Returns:COSObjectKey

The COSObjectKey of the object stream, that is containing the object.

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 object number from the COSObjectKey of the object stream, that is containing the object represented by this entry - 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 index of the COSObject in the containing object stream - 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