Package net.sf.jasperreports.engine.util
Class SwapFileVirtualizerStore
- java.lang.Object
-
- net.sf.jasperreports.engine.util.SwapFileVirtualizerStore
-
- All Implemented Interfaces:
VirtualizerStore
public class SwapFileVirtualizerStore extends Object implements VirtualizerStore
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_DEVIRTUALIZING_ERROR
static String
EXCEPTION_MESSAGE_KEY_UNABLE_TO_READ_DATA
static String
EXCEPTION_MESSAGE_KEY_VIRTUALIZING_ERROR
-
Constructor Summary
Constructors Constructor Description SwapFileVirtualizerStore(JRSwapFile swap, boolean swapOwner)
SwapFileVirtualizerStore(JRSwapFile swap, boolean swapOwner, StreamCompression compression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes the swap file used if this virtualizer owns it.protected boolean
isStored(JRVirtualizable<?> o)
void
remove(String objectId)
void
retrieve(JRVirtualizable<?> o, boolean remove, VirtualizationSerializer serializer)
boolean
store(JRVirtualizable<?> o, VirtualizationSerializer serializer)
String
toString()
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_DEVIRTUALIZING_ERROR
public static final String EXCEPTION_MESSAGE_KEY_DEVIRTUALIZING_ERROR
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_UNABLE_TO_READ_DATA
public static final String EXCEPTION_MESSAGE_KEY_UNABLE_TO_READ_DATA
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_VIRTUALIZING_ERROR
public static final String EXCEPTION_MESSAGE_KEY_VIRTUALIZING_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SwapFileVirtualizerStore
public SwapFileVirtualizerStore(JRSwapFile swap, boolean swapOwner)
-
SwapFileVirtualizerStore
public SwapFileVirtualizerStore(JRSwapFile swap, boolean swapOwner, StreamCompression compression)
-
-
Method Detail
-
isStored
protected boolean isStored(JRVirtualizable<?> o)
-
store
public boolean store(JRVirtualizable<?> o, VirtualizationSerializer serializer)
- Specified by:
store
in interfaceVirtualizerStore
-
retrieve
public void retrieve(JRVirtualizable<?> o, boolean remove, VirtualizationSerializer serializer)
- Specified by:
retrieve
in interfaceVirtualizerStore
-
remove
public void remove(String objectId)
- Specified by:
remove
in interfaceVirtualizerStore
-
dispose
public void dispose()
Disposes the swap file used if this virtualizer owns it.- Specified by:
dispose
in interfaceVirtualizerStore
- See Also:
SwapFileVirtualizerStore(JRSwapFile, boolean)
-
-