Class PartitionTableEntry


  • public class PartitionTableEntry
    extends java.lang.Object
    Class which holds various information about the partitions located on a block device.
    • Constructor Detail

      • PartitionTableEntry

        public PartitionTableEntry​(int partitionType,
                                   int logicalBlockAddress,
                                   int totalNumberOfSectors)
        Construct a new PartitionTableEntry with the given information.
        Parameters:
        partitionType - The file system type of the partition (eg. FAT32).
        logicalBlockAddress - The logical block address on the device where this partition starts.
        totalNumberOfSectors - The total numbers of sectors occupied by the partition.
    • Method Detail

      • getPartitionType

        public int getPartitionType()
        Returns:
        The file system type of the partition.
      • getLogicalBlockAddress

        public int getLogicalBlockAddress()
        Returns:
        The logical block address where this partitions starts on the device.
      • getTotalNumberOfSectors

        public int getTotalNumberOfSectors()
        Returns:
        The total numbers of sectors occupied by this partition. This value is often unused because the same information is also stored in the specific file system.