rossi.fstools.partition
Class Partition
java.lang.Object
rossi.fstools.partition.Partition
- All Implemented Interfaces:
- DiskStructure
- public class Partition
- extends java.lang.Object
- implements DiskStructure
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
boot
protected byte boot
startHead
protected byte startHead
startSector
protected byte startSector
startCyl
protected byte startCyl
system
protected byte system
endHead
protected byte endHead
endSector
protected byte endSector
endCyl
protected byte endCyl
startLBA
protected long startLBA
numLBASector
protected long numLBASector
DOS_EXTENDED_PARTITION
public static final byte DOS_EXTENDED_PARTITION
- See Also:
- Constant Field Values
LINUX_EXTENDED_PARTITION
public static final byte LINUX_EXTENDED_PARTITION
- See Also:
- Constant Field Values
WIN98_EXTENDED_PARTITION
public static final byte WIN98_EXTENDED_PARTITION
- See Also:
- Constant Field Values
Partition
public Partition()
getBoot
public byte getBoot()
setBoot
public void setBoot(byte aBoot)
getStartHead
public byte getStartHead()
setStartHead
public void setStartHead(byte aStartHead)
getStartSector
public byte getStartSector()
setStartSector
public void setStartSector(byte aStartSector)
getStartCyl
public byte getStartCyl()
setStartCyl
public void setStartCyl(byte aStartCyl)
getSystem
public byte getSystem()
setSystem
public void setSystem(byte aSystem)
getEndHead
public byte getEndHead()
setEndHead
public void setEndHead(byte aEndHead)
getEndSector
public byte getEndSector()
setEndSector
public void setEndSector(byte aEndSector)
getEndCyl
public byte getEndCyl()
setEndCyl
public void setEndCyl(byte aEndCyl)
getStartLBA
public long getStartLBA()
setStartLBA
public void setStartLBA(long aStartLBA)
getNumLBASector
public long getNumLBASector()
setNumLBASector
public void setNumLBASector(long aNumLBASector)
isExtended
public boolean isExtended()
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 objectoffset - a int indicating the offset within the buffer to start parsing.
- Throws:
FsException - if a parse error occurs.
toString
public java.lang.String toString()