|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdk.apaq.vfs.impl.cifs.CifsFileSystem
public class CifsFileSystem
| Field Summary |
|---|
| Fields inherited from interface dk.apaq.vfs.FileSystem |
|---|
FSInfo_Description, FSInfo_HasFreeSpaceInformation, FSInfo_HasSizeInformation, FSInfo_Name, FSInfo_Version |
| Constructor Summary | |
|---|---|
CifsFileSystem(String url)
|
|
CifsFileSystem(String server,
String share)
|
|
| 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. |
static String[] |
getServers(String workgroup)
|
static String[] |
getShares(String server)
|
long |
getSize()
Retrieves the size of the filesystem in bytes. |
static String[] |
getWorkgroups()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CifsFileSystem(String server,
String share)
throws MalformedURLException,
jcifs.smb.SmbException
MalformedURLException
jcifs.smb.SmbException
public CifsFileSystem(String url)
throws MalformedURLException,
jcifs.smb.SmbException
MalformedURLException
jcifs.smb.SmbException| Method Detail |
|---|
public 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 Map getInfo()
FileSystem
getInfo in interface FileSystem
public static String[] getWorkgroups()
throws IOException
IOException
public static String[] getServers(String workgroup)
throws IOException
IOException
public static String[] getShares(String server)
throws IOException
IOExceptionpublic 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 | |||||||||