Class SuperBlock
java.lang.Object
|
+----SuperBlock
- public class SuperBlock
- extends Object
- Author:
- Ray Ontko
-
SuperBlock()
- Construct a SuperBlock.
-
getBlocks()
-
-
getBlockSize()
-
-
getDataBlockOffset()
- Get the dataBlockOffset (in blocks)
-
getFreeListBlockOffset()
- Get the free list block offset
-
getInodeBlockOffset()
- Get the inode block offset (in blocks)
-
read(RandomAccessFile)
- reads this SuperBlock at the current position of the specified file.
-
setBlocks(int)
-
-
setBlockSize(short)
-
-
setDataBlockOffset(int)
- Set the dataBlockOffset (in blocks)
-
setFreeListBlockOffset(int)
- Set the freeListBlockOffset (in blocks)
-
setInodeBlockOffset(int)
- Set the inodeBlockOffset (in blocks)
-
write(RandomAccessFile)
- writes this SuperBlock at the current position of the specified file.
SuperBlock
public SuperBlock()
- Construct a SuperBlock.
setBlockSize
public void setBlockSize(short newBlockSize)
getBlockSize
public short getBlockSize()
setBlocks
public void setBlocks(int newBlocks)
getBlocks
public int getBlocks()
setFreeListBlockOffset
public void setFreeListBlockOffset(int newFreeListBlockOffset)
- Set the freeListBlockOffset (in blocks)
- Parameters:
- newFreeListBlockOffset - the new offset in blocks
getFreeListBlockOffset
public int getFreeListBlockOffset()
- Get the free list block offset
- Returns:
- the free list block offset
setInodeBlockOffset
public void setInodeBlockOffset(int newInodeBlockOffset)
- Set the inodeBlockOffset (in blocks)
- Parameters:
- newInodeBlockOffset - the new offset in blocks
getInodeBlockOffset
public int getInodeBlockOffset()
- Get the inode block offset (in blocks)
- Returns:
- inode block offset in blocks
setDataBlockOffset
public void setDataBlockOffset(int newDataBlockOffset)
- Set the dataBlockOffset (in blocks)
- Parameters:
- newDataBlockOffset - the new offset in blocks
getDataBlockOffset
public int getDataBlockOffset()
- Get the dataBlockOffset (in blocks)
- Returns:
- the offset in blocks to the data block region
write
public void write(RandomAccessFile file) throws IOException
- writes this SuperBlock at the current position of the specified file.
read
public void read(RandomAccessFile file) throws IOException
- reads this SuperBlock at the current position of the specified file.