-
- All Implemented Interfaces:
public class PartitionTableFactoryHelper class to create different supported PartitionTables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPartitionTableFactory.UnsupportedPartitionTableExceptionpublic interfacePartitionTableFactory.PartitionTableCreator
-
Field Summary
Fields Modifier and Type Field Description public final static PartitionTableFactoryINSTANCE
-
Method Summary
Modifier and Type Method Description final PartitionTablecreatePartitionTable(BlockDeviceDriver blockDevice)Creates a PartitionTable suitable for the given block device. final UnitregisterPartitionTable(PartitionTableFactory.PartitionTableCreator creator)-
-
Method Detail
-
createPartitionTable
final PartitionTable createPartitionTable(BlockDeviceDriver blockDevice)
Creates a PartitionTable suitable for the given block device. The partition table should be located at the logical block address zero of the device.
- Parameters:
blockDevice- The block device where the partition table is located.
-
registerPartitionTable
@Synchronized() final Unit registerPartitionTable(PartitionTableFactory.PartitionTableCreator creator)
-
-
-
-