Class PartitionTableEntry
- java.lang.Object
-
- com.github.mjdev.libaums.partition.PartitionTableEntry
-
public class PartitionTableEntry extends java.lang.ObjectClass which holds various information about the partitions located on a block device.
-
-
Constructor Summary
Constructors Constructor Description PartitionTableEntry(int partitionType, int logicalBlockAddress, int totalNumberOfSectors)Construct a new PartitionTableEntry with the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLogicalBlockAddress()intgetPartitionType()intgetTotalNumberOfSectors()
-
-
-
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.
-
-