Example usage for Java org.apache.commons.vfs FileObject fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | canRenameTo(FileObject newfile) Queries the file if it is possible to rename it to newfile. |
void | close() Closes this file, and its content. |
void | copyFrom(FileObject srcFile, FileSelector selector) Copies another file, and all its descendents, to this file. |
void | createFile() Creates this file, if it does not exist. |
void | createFolder() Creates this folder, if it does not exist. |
int | delete(FileSelector selector) Deletes all descendents of this file that match a selector. |
boolean | delete() Deletes this file. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
boolean | exists() Determines if this file exists. |
FileObject[] | findFiles(FileSelector selector) Finds the set of matching descendents of this file, in depthwise order. |
void | findFiles(FileSelector selector, boolean depthwise, List selected) Finds the set of matching descendents of this file. |
FileObject | getChild(String name) Returns a child of this file. |
FileObject[] | getChildren() Lists the children of this file. |
Class> | getClass() Returns the runtime class of this Object . |
FileContent | getContent() Returns this file's content. |
FileSystem | getFileSystem() Returns the file system that contains this file. |
FileName | getName() Returns the name of this file. |
FileObject | getParent() Returns the folder that contains this file. |
FileType | getType() Returns this file's type. |
URL | getURL() Returns a URL representing this file. |
int | hashCode() Returns a hash code value for the object. |
boolean | isAttached() check if the fileObject is attaced |
boolean | isHidden() Determines if this file is hidden. |
boolean | isReadable() Determines if this file can be read. |
boolean | isWriteable() Determines if this file can be written to. |
void | moveTo(FileObject destFile) Move this file. |
void | refresh() This will prepare the fileObject to get resynchronized with the underlaying filesystem if required |
FileObject | resolveFile(String name, NameScope scope) Finds a file, relative to this file. |
FileObject | resolveFile(String path) Finds a file, relative to this file. |
String | toString() Returns a string representation of the object. |