Top Methods
org.apache.pdfbox.cos

public Interface ICOSParser

Known Direct Implementers
org.apache.pdfbox.pdfparser.COSParser
Imports
java.io.IOException, org.apache.pdfbox.io.RandomAccessReadView

Method Summary

Modifier and TypeMethod and Description
public RandomAccessReadView

Returns:

the random access read view
createRandomAccessReadView
(long
start position within the underlying random access read
startPosition
,
long
stream length
streamLength
)

Creates a random access read view starting at the given position with the given length.

public COSBase

Returns:

the referenced object
dereferenceCOSObject
(COSObject
the COSObject which references the COSBase object to be dereferenced.
obj
)

Dereference the COSBase object which is referenced by the given COSObject.

Method Detail

createRandomAccessReadViewback to summary
public RandomAccessReadView createRandomAccessReadView(long startPosition, long streamLength) throws IOException

Creates a random access read view starting at the given position with the given length.

Parameters
startPosition:long

start position within the underlying random access read

streamLength:long

stream length

Returns:RandomAccessReadView

the random access read view

Exceptions
IOException:
if something went wrong when creating the view for the RandomAccessRead
dereferenceCOSObjectback to summary
public COSBase dereferenceCOSObject(COSObject obj) throws IOException

Dereference the COSBase object which is referenced by the given COSObject.

Parameters
obj:COSObject

the COSObject which references the COSBase object to be dereferenced.

Returns:COSBase

the referenced object

Exceptions
IOException:
if something went wrong when dereferencing the COSBase object