public static enum RandomAccessData.ResourceAccess extends Enum<RandomAccessData.ResourceAccess>
Enum Constant and Description |
---|
ONCE
Obtain access to the underlying resource once and keep it until the stream is
closed.
|
PER_READ
Obtain access to the underlying resource on each read, releasing it when done.
|
Modifier and Type | Method and Description |
---|---|
static RandomAccessData.ResourceAccess |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RandomAccessData.ResourceAccess[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RandomAccessData.ResourceAccess ONCE
public static final RandomAccessData.ResourceAccess PER_READ
public static RandomAccessData.ResourceAccess[] values()
for (RandomAccessData.ResourceAccess c : RandomAccessData.ResourceAccess.values()) System.out.println(c);
public static RandomAccessData.ResourceAccess valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2014 Pivotal Software, Inc.. All rights reserved.