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.compressed |
The compressed file provider
|
org.apache.commons.vfs2.provider.ftp |
The FTP File Provider.
|
org.apache.commons.vfs2.provider.http |
The HTTP File Provider
|
org.apache.commons.vfs2.provider.http4 |
The HTTP4 File Provider
|
org.apache.commons.vfs2.provider.local |
The Local File Provider.
|
org.apache.commons.vfs2.provider.ram |
The RAM File Provider.
|
org.apache.commons.vfs2.provider.sftp |
The SFTP Provider.
|
org.apache.commons.vfs2.provider.tar |
The Tar File Provider.
|
org.apache.commons.vfs2.provider.url |
The Default File Provider, which wraps java.net.URL.
|
org.apache.commons.vfs2.provider.zip |
The Zip File Provider.
|
Modifier and Type | Field and Description |
---|---|
private FileType |
FileTypeSelector.type
The FileType
|
Modifier and Type | Method and Description |
---|---|
FileType |
FileName.getType()
Returns the requested or current type of this name.
|
FileType |
FileObject.getType()
Returns this file's type.
|
static FileType |
FileType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileType[] |
FileType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
FileTypeSelector(FileType type)
Creates a new selector for the given file type.
|
Modifier and Type | Method and Description |
---|---|
FileType |
OnCallRefreshFileObject.getType() |
Modifier and Type | Method and Description |
---|---|
FileType |
DecoratedFileObject.getType() |
FileType |
SynchronizedFileObject.getType() |
Modifier and Type | Method and Description |
---|---|
FileName |
VirtualFileName.createName(java.lang.String absPath,
FileType type) |
Constructor and Description |
---|
VirtualFileName(java.lang.String scheme,
java.lang.String absPath,
FileType type) |
Modifier and Type | Field and Description |
---|---|
private FileType |
AbstractFileObject.type |
private FileType |
AbstractFileName.type |
Modifier and Type | Method and Description |
---|---|
protected FileType |
DelegateFileObject.doGetType()
Determines the type of the file, returns null if the file does not exist.
|
protected abstract FileType |
AbstractFileObject.doGetType()
Determines the type of this file.
|
FileType |
AbstractFileObject.getType()
Returns the file's type.
|
FileType |
AbstractFileName.getType()
Returns the requested or current type of this name.
|
static FileType |
UriParser.normalisePath(java.lang.StringBuilder path)
Normalises a path.
|
Modifier and Type | Method and 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.
|
FileName |
GenericFileName.createName(java.lang.String absPath,
FileType type)
Create a FileName.
|
FileName |
URLFileName.createName(java.lang.String absPath,
FileType type)
Deprecated.
Create a FileName.
|
FileName |
LayeredFileName.createName(java.lang.String path,
FileType type)
Creates a FileName.
|
abstract FileName |
AbstractFileName.createName(java.lang.String absolutePath,
FileType fileType)
Factory method for creating name instances.
|
FileName |
GenericURLFileName.createName(java.lang.String absPath,
FileType type)
Creates a FileName.
|
protected void |
AbstractFileObject.handleCreate(FileType newType)
Called when this file is created.
|
protected void |
AbstractFileObject.injectType(FileType fileType) |
private void |
DelegateFileObject.maybeTypeChanged(FileType oldType)
Checks whether the file's type has changed, and fires the appropriate events.
|
private void |
AbstractFileObject.notifyParent(FileName childName,
FileType newType)
Notify the parent of a change to its children, when a child is created or deleted.
|
protected void |
AbstractFileObject.onChildrenChanged(FileName child,
FileType newType)
Called when the children of this file change.
|
private void |
AbstractFileObject.setFileType(FileType type) |
(package private) void |
AbstractFileName.setType(FileType type)
Sets the type of this file e.g.
|
Constructor and 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) |
GenericURLFileName(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) |
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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected FileType |
CompressedFileFileObject.doGetType()
Returns the file's type.
|
Modifier and Type | Method and Description |
---|---|
protected FileType |
FtpFileObject.doGetType()
Determines the type of the file, returns null if the file does not exist.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FtpFileObject.onChildrenChanged(FileName child,
FileType newType)
Called when the children of this file change.
|
Modifier and Type | Method and Description |
---|---|
protected FileType |
HttpFileObject.doGetType()
Determines the type of this file.
|
Modifier and Type | Method and Description |
---|---|
protected FileType |
Http4FileObject.doGetType() |
Modifier and Type | Method and Description |
---|---|
protected FileType |
LocalFile.doGetType()
Returns the file's type.
|
Modifier and Type | Method and Description |
---|---|
protected FileName |
GenericFileNameParser.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) |
protected abstract FileName |
LocalFileNameParser.createFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
FileName |
WindowsFileName.createName(java.lang.String path,
FileType type)
Factory method for creating name instances.
|
FileName |
LocalFileName.createName(java.lang.String path,
FileType type)
Factory method for creating name instances.
|
Constructor and 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 | Field and Description |
---|---|
private FileType |
RamFileData.type
File Type.
|
Modifier and Type | Method and Description |
---|---|
protected FileType |
RamFileObject.doGetType() |
(package private) FileType |
RamFileData.getType() |
Modifier and Type | Method and Description |
---|---|
protected void |
RamFileObject.injectType(FileType fileType) |
(package private) void |
RamFileData.setType(FileType type) |
Modifier and Type | Method and Description |
---|---|
protected FileType |
SftpFileObject.doGetType()
Determines the type of this file, returns null if the file does not exist.
|
Modifier and Type | Field and Description |
---|---|
private FileType |
TarFileObject.type |
Modifier and Type | Method and Description |
---|---|
protected FileType |
TarFileObject.doGetType()
Returns the file's type.
|
Modifier and Type | Method and Description |
---|---|
protected FileType |
UrlFileObject.doGetType()
Determines the type of the file.
|
Constructor and 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)
The constructor.
|
Modifier and Type | Field and Description |
---|---|
private FileType |
ZipFileObject.type |
Modifier and Type | Method and Description |
---|---|
protected FileType |
ZipFileObject.doGetType()
Returns the file's type.
|