Package org.apache.pdfbox.cos
Interface ICOSParser
-
- All Known Implementing Classes:
BruteForceParser,COSParser,FDFParser,PDFParser,PreflightParser
public interface ICOSParser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RandomAccessReadViewcreateRandomAccessReadView(long startPosition, long streamLength)Creates a random access read view starting at the given position with the given length.COSBasedereferenceCOSObject(COSObject obj)Dereference the COSBase object which is referenced by the given COSObject.
-
-
-
Method Detail
-
dereferenceCOSObject
COSBase dereferenceCOSObject(COSObject obj) throws java.io.IOException
Dereference the COSBase object which is referenced by the given COSObject.- Parameters:
obj- the COSObject which references the COSBase object to be dereferenced.- Returns:
- the referenced object
- Throws:
java.io.IOException- if something went wrong when dereferencing the COSBase object
-
createRandomAccessReadView
RandomAccessReadView createRandomAccessReadView(long startPosition, long streamLength) throws java.io.IOException
Creates a random access read view starting at the given position with the given length.- Parameters:
startPosition- start position within the underlying random access readstreamLength- stream length- Returns:
- the random access read view
- Throws:
java.io.IOException- if something went wrong when creating the view for the RandomAccessRead
-
-