Class ObjectsFullScanner

java.lang.Object
org.sejda.sambox.input.ObjectsFullScanner

class ObjectsFullScanner extends Object
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 Details

    • LOG

      private static final org.slf4j.Logger LOG
    • OBJECT_DEF_PATTERN

      private static final Pattern OBJECT_DEF_PATTERN
    • xref

      private Xref xref
    • reader

      private SourceReader reader
    • scanned

      private boolean scanned
  • Constructor Details

    • ObjectsFullScanner

      ObjectsFullScanner(SourceReader reader)
  • Method Details

    • scan

      private void scan()
    • addEntryIfObjectDefinition

      private void addEntryIfObjectDefinition(long offset, String line) throws IOException
      Throws:
      IOException
    • onNonObjectDefinitionLine

      protected void onNonObjectDefinitionLine(long originalOffset, String line) throws IOException
      Called when the scanner has read a line which is not an object definition
      Parameters:
      originalOffset - offset from where the line was read
      line -
      Throws:
      IOException
    • onObjectDefinitionLine

      protected void onObjectDefinitionLine(long originalOffset, String line) throws IOException
      Called when the scanner has read a line which is an object definition
      Parameters:
      originalOffset - offset from where the line was read
      line -
      Throws:
      IOException
    • entries

      Xref entries()
      Returns:
      the scanned entries