org.icepdf.core.util
Class LazyObjectLoader
java.lang.Object
org.icepdf.core.util.LazyObjectLoader
- All Implemented Interfaces:
- MemoryManagerDelegate
public class LazyObjectLoader
- extends java.lang.Object
- implements MemoryManagerDelegate
- Since:
- 2.0
- Author:
- Mark Collette
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
leastRecentlyUsed
protected java.util.ArrayList<ObjectStream> leastRecentlyUsed
LazyObjectLoader
public LazyObjectLoader(Library lib,
SeekableInput seekableInput,
CrossReference xref)
loadObject
public boolean loadObject(Reference reference)
haveEntry
public boolean haveEntry(Reference reference)
loadTrailer
public PTrailer loadTrailer(long position)
dispose
public void dispose()
reduceMemory
public boolean reduceMemory(int reductionPolicy)
- Description copied from interface:
MemoryManagerDelegate
- Reduce the amount of memory, as managed by this delegate.
In most cases the PDF object dispose method should be called.
- Specified by:
reduceMemory in interface MemoryManagerDelegate
- Returns:
- true, if any memory was reduced; false, otherwise
getLibrary
public Library getLibrary()
- Get the documents library object.
- Specified by:
getLibrary in interface MemoryManagerDelegate
- Returns:
- documents library object.