|
|||||||||||
| 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(java.io.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(java.io.File file,
long maxSize)
throws java.io.IOException
file - File handlemaxSize - maximum size (in bytes) for the block
java.io.IOException| Method Detail |
void close()
throws java.io.IOException
java.io.IOException
boolean isEnoughSpace(byte[] data)
throws java.io.IOException
data - bytes to be written
java.io.IOException
void write(byte[] data)
throws java.io.IOException
data - the bytes to write
java.io.IOException
byte[] read()
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||