Java org.apache.commons.vfs2 FileObject fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.vfs2 FileObject fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.vfs2 FileObject.

The text is from its open source code.

Implementation

org.apache.commons.vfs2.FileObject has the following implementations.
Click this link to see all its implementation.

Method

booleancanRenameTo(FileObject newfile)
Queries the file if it is possible to rename it to newfile.
voidclose()
Closes this file, and its content.
voidcopyFrom(FileObject srcFile, FileSelector selector)
Copies another file, and all its descendants, to this file.
voidcreateFile()
Creates this file, if it does not exist.
voidcreateFolder()
Creates this folder, if it does not exist.
booleandelete()
Deletes this file.
intdelete(FileSelector selector)
Deletes all descendants of this file that match a selector.
intdeleteAll()
Deletes this file and all children.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
booleanexists()
Determines if this file exists.
FileObject[]findFiles(FileSelector selector)
Finds the set of matching descendants of this file, in depthwise order.
voidfindFiles(FileSelector selector, boolean depthwise, List selected)
Finds the set of matching descendants of this file.
FileObjectgetChild(String name)
Returns a child of this file.
FileObject[]getChildren()
Lists the children of this file.
ClassgetClass()
Returns the runtime class of this Object .
FileContentgetContent()
Returns this file's content.
FileOperationsgetFileOperations()
FileSystemgetFileSystem()
Returns the file system that contains this file.
FileNamegetName()
Returns the name of this file.
FileObjectgetParent()
Returns the folder that contains this file.
StringgetPublicURIString()
Returns the receiver as a URI String for public display, like, without a password.
FileTypegetType()
Returns this file's type.
URLgetURL()
Returns a URL representing this file.
booleanisContentOpen()
Checks if someone reads/write to this file.
booleanisFile()
Checks if this file is a regular file.
booleanisFolder()
Checks if this file is a folder.
booleanisHidden()
Determines if this file is hidden.
booleanisReadable()
Determines if this file can be read.
booleanisWriteable()
Determines if this file can be written to.
voidmoveTo(FileObject destFile)
Move this file.
voidrefresh()
This will prepare the fileObject to get resynchronized with the underlying file system if required.
FileObjectresolveFile(String path)
Finds a file, relative to this file.
FileObjectresolveFile(String name, NameScope scope)
Finds a file relative to this file.
booleansetExecutable(boolean executable, boolean ownerOnly)
Sets the owner's (or everybody's) write permission.
StringtoString()
Returns a string representation of the object.