Package org.apache.commons.vfs2.util
Enum RandomAccessMode
- All Implemented Interfaces:
- Serializable,- Comparable<RandomAccessMode>
An enumerated type representing the modes of a random access content.
 
 TODO Replace with AccessMode.
 
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic RandomAccessModefrom(AccessMode... accessModes) Converts an array ofAccessModeinto a RandomAccessMode.booleanTests the read flag.booleanTests the write flag.Converts this instance to an array ofAccessMode.static RandomAccessModeReturns the enum constant of this type with the specified name.static RandomAccessMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
READRead access mode.
- 
READWRITERead-write access mode.
 
- 
- 
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
 
- 
fromConverts an array ofAccessModeinto a RandomAccessMode.- Parameters:
- accessModes- AccessMode array, only- AccessMode.READand- AccessMode.WRITEare supported.
- Returns:
- A RandomAccessMode.
- Since:
- 2.10.0
 
- 
getModeString
- 
requestReadTests the read flag.- Returns:
- true for read.
 
- 
requestWriteTests the write flag.- Returns:
- true for write.
 
- 
toAccessModesConverts this instance to an array ofAccessMode.- Returns:
- an array of AccessMode.
- Since:
- 2.10.0
 
 
-