|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdk.apaq.vfs.impl.nativefs.NativeFileSystem
public class NativeFileSystem
| Field Summary |
|---|
| Fields inherited from interface dk.apaq.vfs.FileSystem |
|---|
FSInfo_Description, FSInfo_HasFreeSpaceInformation, FSInfo_HasSizeInformation, FSInfo_Name, FSInfo_Version |
| Constructor Summary | |
|---|---|
NativeFileSystem(File file)
|
|
NativeFileSystem(String path)
|
|
NativeFileSystem(URI uri)
|
|
| Method Summary | |
|---|---|
void |
close()
|
long |
getFreeSpace()
Retrieves the free space available. |
Map |
getInfo()
Retrieves a list of information about the filesystem. |
String |
getName()
Retrieves the name of the filesystem. |
Node |
getNode(String path)
|
Directory |
getRoot()
Retrieves the root directory of the filesystem. |
long |
getSize()
Retrieves the size of the filesystem in bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeFileSystem(URI uri)
throws IllegalArgumentException
IllegalArgumentException
public NativeFileSystem(String path)
throws IllegalArgumentException
IllegalArgumentException
public NativeFileSystem(File file)
throws IllegalArgumentException
IllegalArgumentException| Method Detail |
|---|
public Map getInfo()
FileSystem
getInfo in interface FileSystempublic String getName()
FileSystem
getName in interface FileSystem
public Directory getRoot()
throws FileNotFoundException
FileSystem
getRoot in interface FileSystemFileNotFoundException - Thrown if the root directory could not be found.public long getSize()
FileSystem
getSize in interface FileSystemgetInfo(). The key to use for retrieveal is FSInfo_HasSizeInformationpublic long getFreeSpace()
FileSystem
getFreeSpace in interface FileSystemgetInfo(). The key to use for retrieveal is FSInfo_HasFreeSpaceInformation.
public Node getNode(String path)
throws FileNotFoundException
getNode in interface FileSystemFileNotFoundException
public void close()
throws IOException
close in interface FileSystemIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||