|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.File
uk.ac.rdg.resc.jstyx.client.FileWrapper
public class FileWrapper
Wraps a CStyxFile as a java.io.File. This allows Styx servers to be browsed by Java-based filesystem viewers
| Field Summary |
|---|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
FileWrapper(CStyxFile file)
Creates a new instance of FileWrapper that wraps the given CStyxFile. |
|
| Method Summary | |
|---|---|
java.io.File |
getAbsoluteFile()
|
java.lang.String |
getAbsolutePath()
|
java.io.File |
getCanonicalFile()
|
java.lang.String |
getCanonicalPath()
|
CStyxFile |
getCStyxFile()
|
java.lang.String |
getName()
Gets the name of the file, i.e. |
java.lang.String |
getParent()
|
java.io.File |
getParentFile()
|
java.lang.String |
getPath()
Gets the full path of the file. |
boolean |
isAbsolute()
|
boolean |
isDirectory()
Tests whether this FileWrapper wraps a directory |
boolean |
isFile()
Tests whether this FileWrapper wraps a normal file (i.e. |
long |
lastModified()
|
long |
length()
|
java.lang.String[] |
list()
|
java.lang.String[] |
list(java.io.FilenameFilter filter)
Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
java.io.File[] |
listFiles()
Returns an array of FileWrappers denoting the files in this directory. |
java.io.File[] |
listFiles(java.io.FileFilter filter)
Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
java.io.File[] |
listFiles(java.io.FilenameFilter filter)
Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
static java.io.File[] |
listRoots()
Lists available filesystem roots. |
| Methods inherited from class java.io.File |
|---|
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, hashCode, isHidden, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileWrapper(CStyxFile file)
| Method Detail |
|---|
public CStyxFile getCStyxFile()
public java.lang.String getName()
getName in class java.io.Filepublic java.lang.String getPath()
getPath in class java.io.Filepublic java.lang.String getParent()
getParent in class java.io.Filepublic java.io.File getParentFile()
getParentFile in class java.io.Filepublic boolean isAbsolute()
isAbsolute in class java.io.Filepublic java.lang.String getAbsolutePath()
getAbsolutePath in class java.io.Filepublic java.io.File getAbsoluteFile()
getAbsoluteFile in class java.io.File
public java.lang.String getCanonicalPath()
throws java.io.IOException
getCanonicalPath in class java.io.Filejava.io.IOException
public java.io.File getCanonicalFile()
throws java.io.IOException
getCanonicalFile in class java.io.Filejava.io.IOExceptionpublic boolean isDirectory()
isDirectory in class java.io.Filepublic boolean isFile()
isFile in class java.io.Filepublic long length()
length in class java.io.Filepublic long lastModified()
lastModified in class java.io.Filepublic java.lang.String[] list()
list in class java.io.Filepublic java.lang.String[] list(java.io.FilenameFilter filter)
list in class java.io.Filepublic java.io.File[] listFiles()
listFiles in class java.io.Filepublic java.io.File[] listFiles(java.io.FilenameFilter filter)
listFiles in class java.io.Filepublic java.io.File[] listFiles(java.io.FileFilter filter)
listFiles in class java.io.Filepublic static java.io.File[] listRoots()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||