Package org.apache.commons.vfs2
Enum Capability
- All Implemented Interfaces:
Serializable
,Comparable<Capability>
An enumerated type representing the capabilities of files and file systems.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFile content can be appended.File attributes are supported.A compressed file system is a file system which use compression.Files can be created.Files can be deleted.Provides directories which allows you to read its content throughFileContent.getInputStream()
.The provider itself do not provide a file system.File system attributes are supported.File get last-modified time is supported.The file type can be determined.Junctions are supported.File last-modified time is supported.Children of files can be listed.The set of attributes defined by the Jar manifest specification are supported.File content can be read in random mode.File content length can be set in random mode.File content can be written in random mode.File content can be read.Files can be renamed.File set last-modified time is supported.folder set last-modified time is supported.File content signing is supported.URI are supported.A virtual file system can be an archive like tar or zip.File content can be written. -
Method Summary
Modifier and TypeMethodDescriptionstatic Capability
Returns the enum constant of this type with the specified name.static Capability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READ_CONTENT
File content can be read. -
WRITE_CONTENT
File content can be written. -
RANDOM_ACCESS_READ
File content can be read in random mode. -
RANDOM_ACCESS_SET_LENGTH
File content length can be set in random mode. -
RANDOM_ACCESS_WRITE
File content can be written in random mode. -
APPEND_CONTENT
File content can be appended. -
ATTRIBUTES
File attributes are supported. -
LAST_MODIFIED
File last-modified time is supported. -
GET_LAST_MODIFIED
File get last-modified time is supported. -
SET_LAST_MODIFIED_FILE
File set last-modified time is supported. -
SET_LAST_MODIFIED_FOLDER
folder set last-modified time is supported. -
SIGNING
File content signing is supported. -
CREATE
Files can be created. -
DELETE
Files can be deleted. -
RENAME
Files can be renamed. -
GET_TYPE
The file type can be determined. -
LIST_CHILDREN
Children of files can be listed. -
URI
URI are supported. Files without this capability use URI that do not globally and uniquely identify the file. -
FS_ATTRIBUTES
File system attributes are supported. -
JUNCTIONS
Junctions are supported. -
MANIFEST_ATTRIBUTES
The set of attributes defined by the Jar manifest specification are supported. The attributes aren't necessarily stored in a manifest file. -
DISPATCHER
The provider itself do not provide a file system. It simply resolves a full name and dispatches the request back to the file system manager.A provider with this capability cant tell much about the capabilities about the finally used file system in advance.
-
COMPRESS
A compressed file system is a file system which use compression. -
VIRTUAL
A virtual file system can be an archive like tar or zip. -
DIRECTORY_READ_CONTENT
Provides directories which allows you to read its content throughFileContent.getInputStream()
.- Since:
- 2.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-