java.lang.Object
org.sejda.sambox.input.AbstractXrefTableParser
Base class for an xref table parser. Implementors will decide what to do when the parser finds a new trailer or a new
entries.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidonEntryFound(XrefEntry entry) Action to perform when anXrefEntryis found(package private) abstract voidonTrailerFound(COSDictionary trailer) Action to perform when a trailer is foundparse(long tableOffset) Parse the xref table(package private) COSParserparser()private COSDictionaryprivate voidparseXrefTable(long tableOffset)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
TRAILER
- See Also:
-
XREF
- See Also:
-
parser
-
-
Constructor Details
-
AbstractXrefTableParser
AbstractXrefTableParser(COSParser parser)
-
-
Method Details
-
onTrailerFound
Action to perform when a trailer is found- Parameters:
trailer-
-
onEntryFound
Action to perform when anXrefEntryis found- Parameters:
entry-
-
parse
Parse the xref table- Parameters:
tableOffset- xref table offset. This is the offset of the "xref" keyword.- Returns:
- the trailer for this table
- Throws:
IOException
-
parseXrefTable
- Throws:
IOException
-
parseTrailer
- Throws:
IOException
-
parser
COSParser parser()
-