java.lang.Object
org.sejda.sambox.input.ObjectsFullScanner
Component performing a full scan of the document and retrieving objects definition and the
corresponding offset. This implementation is lazy and the full scan is performed the first time
the entries are accessed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final Patternprivate SourceReaderprivate booleanprivate Xref -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddEntryIfObjectDefinition(long offset, String line) (package private) Xrefentries()protected voidonNonObjectDefinitionLine(long originalOffset, String line) Called when the scanner has read a line which is not an object definitionprotected voidonObjectDefinitionLine(long originalOffset, String line) Called when the scanner has read a line which is an object definitionprivate voidscan()
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
OBJECT_DEF_PATTERN
-
xref
-
reader
-
scanned
private boolean scanned
-
-
Constructor Details
-
ObjectsFullScanner
ObjectsFullScanner(SourceReader reader)
-
-
Method Details
-
scan
private void scan() -
addEntryIfObjectDefinition
- Throws:
IOException
-
onNonObjectDefinitionLine
Called when the scanner has read a line which is not an object definition- Parameters:
originalOffset- offset from where the line was readline-- Throws:
IOException
-
onObjectDefinitionLine
Called when the scanner has read a line which is an object definition- Parameters:
originalOffset- offset from where the line was readline-- Throws:
IOException
-
entries
Xref entries()- Returns:
- the scanned entries
-