|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.claudio.fat.MBR
public class MBR
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 | |
---|---|
int |
blkSize
block entrySize |
int |
blockCount
|
int |
blockPerCluster
|
int |
blocksPerFat
|
int |
bootSignature
|
int |
currentFat
|
int |
drive
|
int |
fats
|
java.lang.String |
fsid
filesystem partitionType |
java.lang.String |
fsId
|
int |
fsinfoblock
|
int |
hiddenSectors
|
java.lang.String |
label
volume label |
int |
maxRootDirs
|
int |
mbrcopyBlock
|
int |
media
|
java.lang.String |
oem
volume label |
boolean |
ok
True if boot record |
PartitionEntry[] |
partitions
Partitions |
int |
reservedSectors
|
int |
revision
|
int |
rootDirCluster
Start of root directory |
int |
sectorCount
|
int |
sectorsPerFat
|
int |
sectorsPerTrack
|
int |
serial
|
int |
signature
|
int |
tracksPerCylinder
|
Constructor Summary | |
---|---|
MBR()
|
Method Summary | |
---|---|
static MBR |
create(byte[] b)
Create a new boot record out of a block's data |
void |
fillin(byte[] b)
Initialise with data from block |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean ok
public java.lang.String oem
public java.lang.String fsid
public java.lang.String label
public int blkSize
public int rootDirCluster
public int blockPerCluster
public int reservedSectors
public int fats
public int maxRootDirs
public int sectorCount
public int media
public int sectorsPerFat
public int sectorsPerTrack
public int tracksPerCylinder
public int hiddenSectors
public int blockCount
public int blocksPerFat
public int currentFat
public int revision
public int fsinfoblock
public int mbrcopyBlock
public int drive
public int signature
public int serial
public java.lang.String fsId
public int bootSignature
public PartitionEntry[] partitions
Constructor Detail |
---|
public MBR()
Method Detail |
---|
public void fillin(byte[] b) throws java.io.UnsupportedEncodingException
b
-
java.io.UnsupportedEncodingException
public static MBR create(byte[] b) throws java.io.UnsupportedEncodingException
b
- block
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |