-
- All Implemented Interfaces:
public class FileSystemFactoryThis is a helper class to create different supported file systems. The file system is determined by {link com.github.mjdev.libaums.partition.PartitionTableEntry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileSystemFactory.UnsupportedFileSystemException
-
Field Summary
Fields Modifier and Type Field Description private static TimeZonetimeZonepublic final static FileSystemFactoryINSTANCE
-
Method Summary
Modifier and Type Method Description final FileSystemcreateFileSystem(PartitionTableEntry entry, BlockDeviceDriver blockDevice)final static UnitregisterFileSystem(FileSystemCreator creator)Register a new file system. final static TimeZonegetTimeZone()Set the timezone a file system should use to decode timestamps, if the file system only stores local date and time and has no reference which zone these timestamp correspond to. final static UnitsetTimeZone(static TimeZone timeZone)Set the timezone a file system should use to decode timestamps, if the file system only stores local date and time and has no reference which zone these timestamp correspond to. -
-
Method Detail
-
createFileSystem
final FileSystem createFileSystem(PartitionTableEntry entry, BlockDeviceDriver blockDevice)
-
registerFileSystem
@Synchronized() final static Unit registerFileSystem(FileSystemCreator creator)
Register a new file system.
- Parameters:
creator- The creator which is able to check if a BlockDeviceDriver is holding the correct type of file system and is able to instantiate a FileSystem instance.
-
getTimeZone
final static TimeZone getTimeZone()
Set the timezone a file system should use to decode timestamps, if the file system only stores local date and time and has no reference which zone these timestamp correspond to. (True for FAT32, e.g.)
-
setTimeZone
final static Unit setTimeZone(static TimeZone timeZone)
Set the timezone a file system should use to decode timestamps, if the file system only stores local date and time and has no reference which zone these timestamp correspond to. (True for FAT32, e.g.)
- Parameters:
timeZone- The timezone to use.
-
-
-
-