- <init>
Constructor for the Disk object
- calculateTheNumberOfBlocksNeeded
The number of blocks needed.
- getBlockSizeBytes
- getNumberOfBlocks
- read
Reads an object that is located in the specified blocks.
- write
This writes an object to disk and returns the blocks it was stored in. The
program flow is as follow
- allocateBlocks
Allocate a given number of blocks from the available set
- calculateByteOffsetForBlockAsLong
Calculates the file offset for a particular block.
- close
Closes the file.
- freeBlocks
Add these blocks to the emptyBlock list.
- getAveragePutSizeBytes
- getBlockChunks
Return the amount to put in each block. Fill them all the way, minus the header.