rossi.fstools.partition
Class PartitionTable

java.lang.Object
  extended byrossi.fstools.partition.PartitionTable
All Implemented Interfaces:
DiskStructure

public class PartitionTable
extends java.lang.Object
implements DiskStructure


Field Summary
protected  Partition[] partitions
           
 
Constructor Summary
PartitionTable()
           
 
Method Summary
 int getDataSize()
          Returns the size in bytes of the structure
 Partition[] getPartitions()
           
 void loadFromBuffer(byte[] buffer, int offset)
          Loads the object from a memory buffer
 void setPartitions(Partition[] aPartitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partitions

protected Partition[] partitions
Constructor Detail

PartitionTable

public PartitionTable()
Method Detail

getPartitions

public Partition[] getPartitions()

setPartitions

public void setPartitions(Partition[] aPartitions)

getDataSize

public int getDataSize()
Returns the size in bytes of the structure

Specified by:
getDataSize in interface DiskStructure
Returns:
the size of the structure.

loadFromBuffer

public void loadFromBuffer(byte[] buffer,
                           int offset)
                    throws FsException
Loads the object from a memory buffer

Specified by:
loadFromBuffer in interface DiskStructure
Parameters:
buffer - a byte[] containing data to be read in populating the object
offset - a int indicating the offset within the buffer to start parsing.
Throws:
FsException - if a parse error occurs.