ch.claudio.fat
Class PartitionEntry

java.lang.Object
  extended by ch.claudio.fat.PartitionEntry

public class PartitionEntry
extends java.lang.Object

Version:
$Id:$
Author:
Claudio Nieder

Copyright (C) 2007 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Field Summary
 boolean active
           
 int endHead
           
 int endSector
           
 int endTrack
           
 int lba
           
 int length
           
 int partitionType
           
 int startHead
           
 int startSector
           
 int startTrack
           
 
Constructor Summary
PartitionEntry()
           
 
Method Summary
static PartitionEntry create(byte[] b, int off)
          Create a new partiton entry out of the block data
 void fillin(byte[] b, int off)
          Initialise with data from block
 java.lang.String idDec(int id)
          Produce a human understandable text for a partition partitionType.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

active

public boolean active

startHead

public int startHead

startTrack

public int startTrack

startSector

public int startSector

endHead

public int endHead

endTrack

public int endTrack

endSector

public int endSector

partitionType

public int partitionType

lba

public int lba

length

public int length
Constructor Detail

PartitionEntry

public PartitionEntry()
Method Detail

fillin

public void fillin(byte[] b,
                   int off)
Initialise with data from block

Parameters:
b - block
off - offset within block where partition entry starts

create

public static PartitionEntry create(byte[] b,
                                    int off)
Create a new partiton entry out of the block data

Parameters:
b - block
off - offset
Returns:
partition entry

idDec

public java.lang.String idDec(int id)
Produce a human understandable text for a partition partitionType.

Parameters:
id -
Returns:
partition type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()