public class JRConcurrentSwapFile extends JRSwapFile
JRSwapFile derived class that uses
a FileChannel to perform concurrent I/O on the
swap file.JRSwapFile.LongQueue, JRSwapFile.SwapHandlefile, PROPERTY_DELETE_ON_EXIT, swapFile| 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) |
java.lang.String |
toString() |
protected void |
write(byte[] data,
int dataSize,
int dataOffset,
long fileOffset) |
dispose, finalize, free, freeBlocks, read, reserveFreeBlocks, writepublic 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 fullpublic java.lang.String toString()
toString in class JRSwapFileprotected void write(byte[] data,
int dataSize,
int dataOffset,
long fileOffset)
throws java.io.IOException
write in class JRSwapFilejava.io.IOExceptionprotected void read(byte[] data,
int dataOffset,
int dataLength,
long fileOffset)
throws java.io.IOException
read in class JRSwapFilejava.io.IOException© 2001-2010 Jaspersoft Corporation www.jaspersoft.com