-
- All Implemented Interfaces:
-
com.github.mjdev.libaums.fs.FileSystem
public final class Fat32FileSystem implements FileSystem
This class represents the FAT32 file system and is responsible for setting the FAT32 file system up and extracting the volume label and the root directory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFat32FileSystem.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FatDirectoryrootDirectoryprivate final StringvolumeLabelprivate final Longcapacityprivate final LongoccupiedSpaceprivate final LongfreeSpaceprivate final IntegerchunkSizeprivate final Integertype
-
Method Summary
Modifier and Type Method Description FatDirectorygetRootDirectory()This method returns the root directory of the file system. StringgetVolumeLabel()This method returns the name of the volume which is mostly saved in the file system. LonggetCapacity()LonggetOccupiedSpace()ATTENTION: This value can be inaccurate, depending on actual file system and certain file system specific properties. LonggetFreeSpace()ATTENTION: This value can be inaccurate, depending on actual file system and certain file system specific properties. IntegergetChunkSize()IntegergetType()-
-
Method Detail
-
getRootDirectory
FatDirectory getRootDirectory()
This method returns the root directory of the file system.
-
getVolumeLabel
String getVolumeLabel()
This method returns the name of the volume which is mostly saved in the file system.
In Windows the name of a volume is shown in the explorer before the drive letter.
-
getCapacity
Long getCapacity()
-
getOccupiedSpace
Long getOccupiedSpace()
ATTENTION: This value can be inaccurate, depending on actual file system and certain file system specific properties. Use as an estimation.
-
getFreeSpace
Long getFreeSpace()
ATTENTION: This value can be inaccurate, depending on actual file system and certain file system specific properties. Use as an estimation.
-
getChunkSize
Integer getChunkSize()
-
-
-
-