Package | Description |
---|---|
org.apache.commons.vfs |
The public VFS API.
|
org.apache.commons.vfs.cache | |
org.apache.commons.vfs.impl |
The standard VFS implementation.
|
org.apache.commons.vfs.provider |
The File Provider API, and utility classes.
|
org.apache.commons.vfs.provider.compressed | |
org.apache.commons.vfs.provider.ftp |
The FTP File Provider.
|
org.apache.commons.vfs.provider.http | |
org.apache.commons.vfs.provider.local |
The Local File Provider.
|
org.apache.commons.vfs.provider.ram |
The RAM File Provider.
|
org.apache.commons.vfs.provider.sftp |
The SFTP Provider.
|
org.apache.commons.vfs.provider.tar |
The Tar File Provider.
|
org.apache.commons.vfs.provider.url |
The Default File Provider, which wraps java.net.URL.
|
org.apache.commons.vfs.provider.zip |
The Zip File Provider.
|
Modifier and Type | Field | Description |
---|---|---|
static FileType |
FileType.FILE |
A regular file.
|
static FileType |
FileType.FILE_OR_FOLDER |
A file or folder.
|
static FileType |
FileType.FOLDER |
A folder.
|
static FileType |
FileType.IMAGINARY |
A file that does not exist.
|
Modifier and Type | Method | Description |
---|---|---|
FileType |
FileName.getType() |
Returns the requested or current type of this name.
|
FileType |
FileObject.getType() |
Returns this file's type.
|
Constructor | Description |
---|---|
FileTypeSelector(FileType type) |
Modifier and Type | Method | Description |
---|---|---|
FileType |
OnCallRefreshFileObject.getType() |
Modifier and Type | Method | Description |
---|---|---|
FileType |
DecoratedFileObject.getType() |
|
FileType |
SynchronizedFileObject.getType() |
Modifier and Type | Method | Description |
---|---|---|
FileName |
VirtualFileName.createName(java.lang.String absPath,
FileType type) |
Constructor | Description |
---|---|
VirtualFileName(java.lang.String scheme,
java.lang.String absPath,
FileType type) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract FileType |
AbstractFileObject.doGetType() |
Determines the type of this file.
|
protected FileType |
DelegateFileObject.doGetType() |
Determines the type of the file, returns null if the file does not
exist.
|
FileType |
AbstractFileName.getType() |
Returns the requested or current type of this name.
|
FileType |
AbstractFileObject.getType() |
Returns the file's type.
|
static FileType |
UriParser.normalisePath(java.lang.StringBuffer path) |
Normalises a path.
|
Modifier and Type | Method | Description |
---|---|---|
void |
DelegateFileObject.attachChild(FileName baseName,
FileType type) |
Adds a child to this file.
|
protected void |
AbstractFileObject.childrenChanged(FileName childName,
FileType newType) |
Notifies the file that its children have changed.
|
abstract FileName |
AbstractFileName.createName(java.lang.String absPath,
FileType type) |
Factory method for creating name instances.
|
FileName |
GenericFileName.createName(java.lang.String absPath,
FileType type) |
|
FileName |
LayeredFileName.createName(java.lang.String path,
FileType type) |
|
FileName |
URLFileName.createName(java.lang.String absPath,
FileType type) |
|
protected void |
AbstractFileObject.handleCreate(FileType newType) |
Called when this file is created.
|
protected void |
AbstractFileObject.injectType(FileType fileType) |
|
protected void |
AbstractFileObject.onChildrenChanged(FileName child,
FileType newType) |
Called when the children of this file change.
|
Constructor | Description |
---|---|
AbstractFileName(java.lang.String scheme,
java.lang.String absPath,
FileType type) |
|
GenericFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type) |
|
LayeredFileName(java.lang.String scheme,
FileName outerUri,
java.lang.String path,
FileType type) |
|
URLFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type,
java.lang.String queryString) |
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
CompressedFileFileObject.doGetType() |
Returns the file's type.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
FtpFileObject.doGetType() |
Determines the type of the file, returns null if the file does not
exist.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
FtpFileObject.onChildrenChanged(FileName child,
FileType newType) |
Called when the children of this file change.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
HttpFileObject.doGetType() |
Determines the type of this file.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
LocalFile.doGetType() |
Returns the file's type.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileName |
GenericFileNameParser.createFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
|
protected abstract FileName |
LocalFileNameParser.createFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
|
protected FileName |
WindowsFileNameParser.createFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
|
FileName |
LocalFileName.createName(java.lang.String path,
FileType type) |
Factory method for creating name instances.
|
FileName |
WindowsFileName.createName(java.lang.String path,
FileType type) |
Factory method for creating name instances.
|
Constructor | Description |
---|---|
LocalFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
|
WindowsFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
RamFileObject.doGetType() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
RamFileObject.injectType(FileType fileType) |
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
SftpFileObject.doGetType() |
Determines the type of this file, returns null if the file does not
exist.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
TarFileObject.doGetType() |
Returns the file's type.
|
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
UrlFileObject.doGetType() |
Determines the type of the file.
|
Constructor | Description |
---|---|
UrlFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type,
java.lang.String queryString) |
Modifier and Type | Method | Description |
---|---|---|
protected FileType |
ZipFileObject.doGetType() |
Returns the file's type.
|