net.sf.jasperreports.engine.util
public class JRConcurrentSwapFile extends JRSwapFile
JRSwapFile
derived class that uses
a FileChannel
to perform concurrent I/O on the
swap file.JRSwapFile.LongQueue, JRSwapFile.SwapHandle
file, PROPERTY_DELETE_ON_EXIT
Constructor and Description |
---|
JRConcurrentSwapFile(java.lang.String directory,
int blockSize,
int minGrowCount)
Creates a swap file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
read(byte[] data,
int dataOffset,
int dataLength,
long fileOffset) |
protected void |
write(byte[] data,
int dataSize,
int dataOffset,
long fileOffset) |
dispose, finalize, free, freeBlocks, read, reserveFreeBlocks, write
public JRConcurrentSwapFile(java.lang.String directory, int blockSize, int minGrowCount)
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 fullprotected void write(byte[] data, int dataSize, int dataOffset, long fileOffset) throws java.io.IOException
write
in class JRSwapFile
java.io.IOException
protected void read(byte[] data, int dataOffset, int dataLength, long fileOffset) throws java.io.IOException
read
in class JRSwapFile
java.io.IOException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com