| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ru.biosoft.util.FileBuffer | +--ru.biosoft.util.SoftFileBuffer
Optimized by memory size implementation of FileBuffer interface. SoftFileBuffer provides buffered reading/writing of random access file Created buffers are based on SoftReference memory allocation.
| Constructor Summary | |
SoftFileBuffer(RandomAccessFile rndFile, int sz)Constructs the RandomAccessBuffer object. | |
SoftFileBuffer(RandomAccessFile rndFile)Constructs the RandomAccessBuffer object using specified RandomAccessFile. | |
SoftFileBuffer(File file, int sz)Constructs the RandomAccessBuffer object using specified file and size of buffer. | |
SoftFileBuffer(File file)Constructs the RandomAccessBuffer object using specified file . | |
| Method Summary | |
void | close()Closes the buffer. |
byte | read(int pos)Reads one byte from requested position. |
void | write(int pos, byte bt)Writes one byte to the requested position in the buffer. |
| Constructor Detail |
public SoftFileBuffer(RandomAccessFile rndFile, int sz)
throws java.io.IOException
public SoftFileBuffer(RandomAccessFile rndFile)
throws java.io.IOException
public SoftFileBuffer(File file, int sz)
throws java.io.IOException
public SoftFileBuffer(File file)
throws java.io.IOException
| Method Detail |
public void close()
throws java.io.IOException
public byte read(int pos)
throws java.io.IOException
public void write(int pos, byte bt)
throws java.io.IOException
| Association Links |
to Class java.io.RandomAccessFile
to Class java.lang.ref.SoftReference
to Class java.lang.ref.SoftReference
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||