|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.waldheinz.fs.AbstractFileSystem
de.waldheinz.fs.fat.FatFileSystem
public final class FatFileSystem
Implements the FileSystem
interface for the FAT family of file
systems. This class always uses the "long file name" specification when
writing directory entries.
For creating (aka "formatting") FAT file systems please refer to the
SuperFloppyFormatter
class.
Method Summary | |
---|---|
void |
flush()
Flush all changed structures to the device. |
FatType |
getFatType()
Returns the size of the FAT entries of this FatFileSystem . |
long |
getFreeSpace()
The free space of this file system. This method is currently not implemented for FatFileSystem and
always returns -1. |
FatLfnDirectory |
getRoot()
Gets the root entry of this filesystem. |
long |
getTotalSpace()
The total size of this file system. This method is currently not implemented for FatFileSystem and
always returns -1. |
long |
getUsableSpace()
The usable space of this file system. This method is currently not implemented for FatFileSystem and
always returns -1. |
String |
getVolumeLabel()
Returns the volume label of this file system. |
static FatFileSystem |
read(BlockDevice device,
boolean readOnly)
Reads the file system structure from the specified BlockDevice
and returns a fresh FatFileSystem instance to read or modify
it. |
void |
setVolumeLabel(String label)
Sets the volume label for this file system. |
Methods inherited from class de.waldheinz.fs.AbstractFileSystem |
---|
checkClosed, checkReadOnly, close, isClosed, isReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FatFileSystem read(BlockDevice device, boolean readOnly) throws IOException
BlockDevice
and returns a fresh FatFileSystem
instance to read or modify
it.
device
- the BlockDevice
holding the file systemreadOnly
- if the FatFileSystem
should be in read-only mode
FatFileSystem
instance for the device
IOException
- on read error or if the file system structure could
not be parsedpublic FatType getFatType()
FatFileSystem
.
public String getVolumeLabel()
public void setVolumeLabel(String label) throws ReadOnlyException, IOException
label
- the new volume label, may be null
ReadOnlyException
- if the file system is read-only
IOException
- on write errorpublic void flush() throws IOException
IOException
- on write errorpublic FatLfnDirectory getRoot()
FileSystem
public long getFreeSpace()
The free space of this file system.
This method is currently not implemented for FatFileSystem
and
always returns -1.
public long getTotalSpace()
The total size of this file system.
This method is currently not implemented for FatFileSystem
and
always returns -1.
public long getUsableSpace()
The usable space of this file system.
This method is currently not implemented for FatFileSystem
and
always returns -1.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |