Package net.sf.jasperreports.engine.fill
Class JRGzipVirtualizer
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
-
- net.sf.jasperreports.engine.fill.JRGzipVirtualizer
-
- All Implemented Interfaces:
JRVirtualizer
public class JRGzipVirtualizer extends JRAbstractLRUVirtualizer
GZips the pages that it doesn't need, but keeps them in memory.- Author:
- John Bindel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
JRAbstractLRUVirtualizer.Cache, JRAbstractLRUVirtualizer.CacheReference
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_NO_DATA_FOUND
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
lastObjectMap, lastObjectRef, lastObjectSet, pagedIn, pagedOut, serializer
-
-
Constructor Summary
Constructors Constructor Description JRGzipVirtualizer(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Called when we are done with the virtualizer and wish to cleanup any resources it has.protected void
dispose(String virtualId)
Removes the external data associated with a virtualizable object.protected void
pageIn(JRVirtualizable o)
Reads a virtualizable object's data from an external storage.protected void
pageOut(JRVirtualizable o)
Writes a virtualizable object's data to an external storage.-
Methods inherited from class net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer
clearData, contextChanged, deregisterObject, dispose, disposeAll, evict, finalize, isEvictable, isPagedOut, isPagedOutAndTouch, isReadOnly, isReadOnly, lastObject, readData, registerObject, requestData, reset, setLastObject, setReadOnly, touch, virtualizeData, writeData
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_NO_DATA_FOUND
public static final String EXCEPTION_MESSAGE_KEY_NO_DATA_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispose
protected void dispose(String virtualId)
Description copied from class:JRAbstractLRUVirtualizer
Removes the external data associated with a virtualizable object.- Specified by:
dispose
in classJRAbstractLRUVirtualizer
- Parameters:
virtualId
- the ID of the virtualizable object
-
pageOut
protected void pageOut(JRVirtualizable o) throws IOException
Description copied from class:JRAbstractLRUVirtualizer
Writes a virtualizable object's data to an external storage.- Specified by:
pageOut
in classJRAbstractLRUVirtualizer
- Parameters:
o
- a virtualizable object- Throws:
IOException
-
pageIn
protected void pageIn(JRVirtualizable o) throws IOException
Description copied from class:JRAbstractLRUVirtualizer
Reads a virtualizable object's data from an external storage.- Specified by:
pageIn
in classJRAbstractLRUVirtualizer
- Parameters:
o
- a virtualizable object- Throws:
IOException
-
cleanup
public void cleanup()
Description copied from interface:JRVirtualizer
Called when we are done with the virtualizer and wish to cleanup any resources it has.
-
-