Class PartitionTableFactory
- java.lang.Object
-
- com.github.mjdev.libaums.partition.PartitionTableFactory
-
public class PartitionTableFactory extends java.lang.ObjectHelper class to create different supportedPartitionTables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePartitionTableFactory.PartitionTableCreatorstatic classPartitionTableFactory.UnsupportedPartitionTableException
-
Constructor Summary
Constructors Constructor Description PartitionTableFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PartitionTablecreatePartitionTable(BlockDeviceDriver blockDevice)Creates aPartitionTablesuitable for the given block device.static voidregisterPartitionTable(PartitionTableFactory.PartitionTableCreator creator)
-
-
-
Method Detail
-
createPartitionTable
public static PartitionTable createPartitionTable(BlockDeviceDriver blockDevice) throws java.io.IOException
Creates aPartitionTablesuitable 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.- Returns:
- The newly created
PartitionTable. - Throws:
java.io.IOException- If reading from the device fails.
-
registerPartitionTable
public static void registerPartitionTable(PartitionTableFactory.PartitionTableCreator creator)
-
-