| |
|
| java.lang.Object net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer net.sf.jasperreports.engine.fill.JRFileVirtualizer
JRFileVirtualizer | public class JRFileVirtualizer extends JRAbstractLRUVirtualizer (Code) | | Virtualizes data to the filesystem. When this object is finalized, it removes
the swap files it makes. The virtualized objects have references to this
object, so finalization does not occur until this object and the objects
using it are only weakly referenced.
author: John Bindel version: $Id: JRFileVirtualizer.java 1327 2006-07-06 13:43:55Z teodord $ |
PROPERTY_TEMP_FILES_SET_DELETE_ON_EXIT | final public static String PROPERTY_TEMP_FILES_SET_DELETE_ON_EXIT(Code) | | Property used to decide whether
File.deleteOnExit deleteOnExit should be requested
for temporary files created by the virtualizer.
Calling
File.deleteOnExit File.deleteOnExit() will accumulate JVM process memory
(see this bug), and this
should abviously be avoided in long-running applications.
Temporary files will be deleted by explicitly calling
JRFileVirtualizer.cleanup() cleanup() or from the virtualizer
finalize() method.
|
JRFileVirtualizer | public JRFileVirtualizer(int maxSize)(Code) | | Uses the process's working directory as the location to store files.
Parameters: maxSize - the maximum size (in JRVirtualizable objects) of the paged incache. |
JRFileVirtualizer | public JRFileVirtualizer(int maxSize, String directory)(Code) | | Parameters: maxSize - the maximum size (in JRVirtualizable objects) of the paged incache. Parameters: directory - the base directory in the filesystem where the paged out datais to be stored |
cleanup | public synchronized void cleanup()(Code) | | Called when we are done with the virtualizer and wish to
cleanup any resources it has.
|
|
|
|