- All Known Implementing Classes:
public interface Cache
This interface represents a structure which can be used to store parts of a PDF to disk, a database or some other secondary storage, to reduce the amount of memory required to generate a PDF.
Generally speaking, an item is eligible for caching when the
Cache.Entry.close()method is called. This is called by the
PDFSound.close()methods, and it is a good idea to call these methods when you have created your image/canvas/page and won't be making any further changes to it (hint - unless you're setting MetaData on a PDFImage, you can close it immediately after it's created).
At that point, whether the item is swapped out is down the the implementation of the cache.
- See Also:
Nested Class Summary
Nested Classes Modifier and Type Interface Description
Cache.EntryRepresents a single entry in the Cache.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
newEntry(int bytes)Return a new Cache.Entry.
Cache.Entry newEntry(int bytes)Return a new Cache.Entry.
bytes- the expected size of the buffer in byte