Package | Description |
---|---|
org.apache.commons.vfs2 |
The public VFS API.
|
org.apache.commons.vfs2.cache |
VFS File caching
|
org.apache.commons.vfs2.impl |
The standard VFS implementation.
|
org.apache.commons.vfs2.provider |
The File Provider API, and utility classes.
|
org.apache.commons.vfs2.provider.local |
The Local File Provider.
|
Modifier and Type | Class and Description |
---|---|
class |
AllFileSelector
A
FileSelector that selects everything. |
class |
FileDepthSelector
A
FileSelector that selects all files in a particular depth range. |
class |
FileExtensionSelector
A
FileSelector that selects based on file extensions. |
class |
FileFilterSelector
A
FileSelector that selects all children of the given fileObject. |
class |
FileTypeSelector
A
FileSelector that selects files of a particular type. |
class |
InvertIncludeFileSelector
Inverts file inclusion of a delegate FileSelector, folder traversal is delegated.
|
class |
PatternFileSelector
A
FileSelector that selects based on regular expressions. |
Modifier and Type | Field and Description |
---|---|
static FileSelector |
Selectors.EXCLUDE_SELF
A
FileSelector that selects all the descendants of the base folder, but does not select the base folder
itself. |
static FileSelector |
Selectors.SELECT_ALL
A
FileSelector that selects the base file/folder, plus all its descendants. |
static FileSelector |
Selectors.SELECT_CHILDREN
A
FileSelector that selects only the direct children of the base folder. |
static FileSelector |
Selectors.SELECT_FILES
A
FileSelector that only files (not folders). |
static FileSelector |
Selectors.SELECT_FOLDERS
A
FileSelector that only folders (not files). |
static FileSelector |
Selectors.SELECT_SELF
A
FileSelector that selects only the base file/folder. |
static FileSelector |
Selectors.SELECT_SELF_AND_CHILDREN
A
FileSelector that selects the base file/folder and its direct children. |
Modifier and Type | Method and Description |
---|---|
void |
FileObject.copyFrom(FileObject srcFile,
FileSelector selector)
Copies another file, and all its descendants, to this file.
|
int |
FileObject.delete(FileSelector selector)
Deletes all descendants of this file that match a selector.
|
FileObject[] |
FileObject.findFiles(FileSelector selector)
Finds the set of matching descendants of this file, in depthwise order.
|
void |
FileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected)
Finds the set of matching descendants of this file.
|
File |
FileSystem.replicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
Constructor and Description |
---|
InvertIncludeFileSelector(FileSelector delegateFileSelector) |
Modifier and Type | Method and Description |
---|---|
void |
OnCallRefreshFileObject.copyFrom(FileObject srcFile,
FileSelector selector) |
int |
OnCallRefreshFileObject.delete(FileSelector selector) |
FileObject[] |
OnCallRefreshFileObject.findFiles(FileSelector selector) |
void |
OnCallRefreshFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected) |
Modifier and Type | Method and Description |
---|---|
void |
SynchronizedFileObject.copyFrom(FileObject srcFile,
FileSelector selector) |
void |
DecoratedFileObject.copyFrom(FileObject srcFile,
FileSelector selector) |
int |
SynchronizedFileObject.delete(FileSelector selector) |
int |
DecoratedFileObject.delete(FileSelector selector) |
FileObject[] |
SynchronizedFileObject.findFiles(FileSelector selector) |
FileObject[] |
DecoratedFileObject.findFiles(FileSelector selector) |
void |
SynchronizedFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected) |
void |
DecoratedFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected) |
File |
DefaultFileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
File |
PrivilegedFileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractFileObject.copyFrom(FileObject file,
FileSelector selector)
Copies another file to this file.
|
int |
AbstractFileObject.delete(FileSelector selector)
Deletes this file, and all children matching the
selector . |
protected File |
AbstractFileSystem.doReplicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
FileObject[] |
AbstractFileObject.findFiles(FileSelector selector)
Finds the set of matching descendants of this file, in depthwise order.
|
void |
AbstractFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected)
Traverses the descendants of this file, and builds a list of selected files.
|
List<FileObject> |
AbstractFileObject.listFiles(FileSelector selector)
Lists the set of matching descendants of this file, in depthwise order.
|
File |
AbstractFileSystem.replicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
File |
FileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
Modifier and Type | Method and Description |
---|---|
protected File |
LocalFileSystem.doReplicateFile(FileObject fileObject,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.