Example usage for Java org.apache.commons.vfs2 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 descendants, to this file. |
void | createFile() Creates this file, if it does not exist. |
void | createFolder() Creates this folder, if it does not exist. |
boolean | delete() Deletes this file. |
int | delete(FileSelector selector) Deletes all descendants of this file that match a selector. |
int | deleteAll() Deletes this file and all children. |
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 descendants of this file, in depthwise order. |
void | findFiles(FileSelector selector, boolean depthwise, List Finds the set of matching descendants 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. |
FileOperations | getFileOperations() |
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. |
String | getPublicURIString() Returns the receiver as a URI String for public display, like, without a password. |
FileType | getType() Returns this file's type. |
URL | getURL() Returns a URL representing this file. |
boolean | isContentOpen() Checks if someone reads/write to this file. |
boolean | isFile() Checks if this file is a regular file. |
boolean | isFolder() Checks if this file is a folder. |
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 underlying file system if required. |
FileObject | resolveFile(String path) Finds a file, relative to this file. |
FileObject | resolveFile(String name, NameScope scope) Finds a file relative to this file. |
boolean | setExecutable(boolean executable, boolean ownerOnly) Sets the owner's (or everybody's) write permission. |
String | toString() Returns a string representation of the object. |