Package org.apache.pdfbox.cos
Interface ICOSParser
- All Known Implementing Classes:
BruteForceParser,COSParser,FDFParser,PDFParser,PreflightParser
public interface ICOSParser
-
Method Summary
Modifier and TypeMethodDescriptioncreateRandomAccessReadView(long startPosition, long streamLength) Creates a random access read view starting at the given position with the given length.Dereference the COSBase object which is referenced by the given COSObject.
-
Method Details
-
dereferenceCOSObject
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:
IOException- if something went wrong when dereferencing the COSBase object
-
createRandomAccessReadView
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- start position within the underlying random access readstreamLength- stream length- Returns:
- the random access read view
- Throws:
IOException- if something went wrong when creating the view for the RandomAccessRead
-