de.schlichtherle.truezip.fs
Enum FsInputOption
java.lang.Object
java.lang.Enum<FsInputOption>
de.schlichtherle.truezip.fs.FsInputOption
- All Implemented Interfaces:
- Serializable, Comparable<FsInputOption>
@Immutable
public enum FsInputOption
- extends Enum<FsInputOption>
Defines the potential options for data input operations.
Not all options may be supported or available for all operations and
certain combinations may even be illegal.
It's up to the particular operation to define which options are
supported and available.
If an option is not supported, it must be silently ignored.
If an option is not available, an IOException must be thrown.
- Author:
- Christian Schlichtherle
- See Also:
FsOutputOption
|
Enum Constant Summary |
CACHE
Whether or not the entry data written by an output socket shall get
temporarily cached for subsequent access. |
|
Method Summary |
static FsInputOption |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FsInputOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
CACHE
public static final FsInputOption CACHE
- Whether or not the entry data written by an output socket shall get
temporarily cached for subsequent access.
As a desired side effect, caching allows a file system controller to
FsController.sync(de.schlichtherle.truezip.util.BitField) the entry data to the backing storage
(e.g. a parent file system) while some client is still busy on reading
or writing the cached entry data.
values
public static FsInputOption[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FsInputOption c : FsInputOption.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FsInputOption valueOf(String name)
- 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 name
NullPointerException - if the argument is null
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.