Class LazyIndirectObjectsProvider

java.lang.Object
org.sejda.sambox.input.LazyIndirectObjectsProvider
All Implemented Interfaces:
Closeable, AutoCloseable, IndirectObjectsProvider

class LazyIndirectObjectsProvider extends Object implements IndirectObjectsProvider
A lazy implementation of the IndirectObjectsProvider that retrieves COSBase objects parsing the underlying source on demand (ie. when the IndirectObjectsProvider.get(COSObjectKey) method is called). Parsed objects are stored in a cache to be reused. If for given a COSObjectKey no entry is found in the xref, a fallback mechanism is activated performing a full scan of the document to retrieve all the objects defined in it.