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 SummaryEnum 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 SummaryModifier and TypeMethodDescriptionstatic CapabilityReturns 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_CONTENTFile content can be read.
- 
WRITE_CONTENTFile content can be written.
- 
RANDOM_ACCESS_READFile content can be read in random mode.
- 
RANDOM_ACCESS_SET_LENGTHFile content length can be set in random mode.
- 
RANDOM_ACCESS_WRITEFile content can be written in random mode.
- 
APPEND_CONTENTFile content can be appended.
- 
ATTRIBUTESFile attributes are supported.
- 
LAST_MODIFIEDFile last-modified time is supported.
- 
GET_LAST_MODIFIEDFile get last-modified time is supported.
- 
SET_LAST_MODIFIED_FILEFile set last-modified time is supported.
- 
SET_LAST_MODIFIED_FOLDERfolder set last-modified time is supported.
- 
SIGNINGFile content signing is supported.
- 
CREATEFiles can be created.
- 
DELETEFiles can be deleted.
- 
RENAMEFiles can be renamed.
- 
GET_TYPEThe file type can be determined.
- 
LIST_CHILDRENChildren of files can be listed.
- 
URIURI are supported. Files without this capability use URI that do not globally and uniquely identify the file.
- 
FS_ATTRIBUTESFile system attributes are supported.
- 
JUNCTIONSJunctions are supported.
- 
MANIFEST_ATTRIBUTESThe set of attributes defined by the Jar manifest specification are supported. The attributes aren't necessarily stored in a manifest file.
- 
DISPATCHERThe 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. 
- 
COMPRESSA compressed file system is a file system which use compression.
- 
VIRTUALA virtual file system can be an archive like tar or zip.
- 
DIRECTORY_READ_CONTENTProvides directories which allows you to read its content throughFileContent.getInputStream().- Since:
- 2.0
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-