Package net.sf.jasperreports.engine.util
Class JRConcurrentSwapFile
java.lang.Object
net.sf.jasperreports.engine.util.JRSwapFile
net.sf.jasperreports.engine.util.JRConcurrentSwapFile
JRSwapFile
derived class that uses
a FileChannel
to perform concurrent I/O on the
swap file.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.util.JRSwapFile
JRSwapFile.LongQueue, JRSwapFile.SwapHandle
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.util.JRSwapFile
file, PROPERTY_DELETE_ON_EXIT, swapFile
-
Constructor Summary
ConstructorsConstructorDescriptionJRConcurrentSwapFile
(String directory, int blockSize, int minGrowCount) Creates a swap file. -
Method Summary
Methods inherited from class net.sf.jasperreports.engine.util.JRSwapFile
dispose, finalize, free, freeBlocks, read, reserveFreeBlocks, write
-
Field Details
-
EXCEPTION_MESSAGE_KEY_INSUFFICIENT_DATA
- See Also:
-
-
Constructor Details
-
JRConcurrentSwapFile
Creates a swap file. The file name is generated automatically.- Parameters:
directory
- the directory where the file should be created.blockSize
- the size of the blocks allocated by the swap fileminGrowCount
- the minimum number of blocks by which the swap file grows when full
-
-
Method Details
-
toString
- Overrides:
toString
in classJRSwapFile
-
write
- Overrides:
write
in classJRSwapFile
- Throws:
IOException
-
read
protected void read(byte[] data, int dataOffset, int dataLength, long fileOffset) throws IOException - Overrides:
read
in classJRSwapFile
- Throws:
IOException
-