|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.message.util.FileDataBlock
Simply writes/reads data from a RandomAccessFile
| Constructor Summary | |
(package private) |
FileDataBlock(File file,
long maxSize)
Constructor |
| Method Summary | |
(package private) void |
close()
close and deletes the block |
(package private) boolean |
isEnoughSpace(byte[] data)
test to if there is enough room in the block to write the data |
(package private) byte[] |
read()
read next chunk of data |
(package private) void |
write(byte[] data)
Write data to the end of the block |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
FileDataBlock(File file,
long maxSize)
throws IOException
file - File handlemaxSize - maximum size (in bytes) for the block
IOException| Method Detail |
void close()
throws IOException
IOException
boolean isEnoughSpace(byte[] data)
throws IOException
data - bytes to be written
IOException
void write(byte[] data)
throws IOException
data - the bytes to write
IOException
byte[] read()
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||