public class Fat32FileSystem extends java.lang.Object implements FileSystem
| Modifier and Type | Method and Description |
|---|---|
long |
getCapacity() |
int |
getChunkSize() |
long |
getFreeSpace()
ATTENTION: This value can be inaccurate, depending on actual file system and certain file
system specific properties.
|
long |
getOccupiedSpace()
ATTENTION: This value can be inaccurate, depending on actual file system and certain file
system specific properties.
|
UsbFile |
getRootDirectory()
This method returns the root directory of the file system.
|
java.lang.String |
getVolumeLabel()
This method returns the name of the volume which is mostly saved in the
file system.
|
static Fat32FileSystem |
read(BlockDeviceDriver blockDevice)
This method constructs a FAT32 file system for the given block device.
|
public static Fat32FileSystem read(BlockDeviceDriver blockDevice) throws java.io.IOException
blockDevice - The block device the FAT32 file system is located.java.io.IOException - If reading from the device fails.public UsbFile getRootDirectory()
FileSystemgetRootDirectory in interface FileSystempublic java.lang.String getVolumeLabel()
FileSystemIn Windows the name of a volume is shown in the explorer before the drive letter.
getVolumeLabel in interface FileSystempublic long getCapacity()
getCapacity in interface FileSystempublic long getOccupiedSpace()
FileSystemgetOccupiedSpace in interface FileSystempublic long getFreeSpace()
FileSystemgetFreeSpace in interface FileSystempublic int getChunkSize()
getChunkSize in interface FileSystem