Class PartitionTableFactory


  • public class PartitionTableFactory
    extends java.lang.Object
    Helper class to create different supported PartitionTables.
    • Constructor Detail

      • PartitionTableFactory

        public PartitionTableFactory()
    • Method Detail

      • createPartitionTable

        public static PartitionTable createPartitionTable​(BlockDeviceDriver blockDevice)
                                                   throws java.io.IOException
        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.
        Returns:
        The newly created PartitionTable.
        Throws:
        java.io.IOException - If reading from the device fails.