public class MasterBootRecord extends java.lang.Object implements PartitionTable
| Modifier and Type | Field and Description |
|---|---|
java.util.List<PartitionTableEntry> |
partitions |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<PartitionTableEntry> |
getPartitionTableEntries() |
int |
getSize() |
static MasterBootRecord |
read(java.nio.ByteBuffer buffer)
Reads and parses the MBR located in the buffer.
|
public java.util.List<PartitionTableEntry> partitions
public static MasterBootRecord read(java.nio.ByteBuffer buffer)
buffer - The data which shall be examined.MasterBootRecord() or null if the data does not
seem to be a MBR.public int getSize()
getSize in interface PartitionTablepublic java.util.Collection<PartitionTableEntry> getPartitionTableEntries()
getPartitionTableEntries in interface PartitionTablePartitionTableEntrys located on the block
device.