public enum ReadType extends Enum<ReadType>
Enum Constant and Description |
---|
CACHE
Read the file and cache it.
|
NO_CACHE
Read the file and but do not cache it explicitly.
|
Modifier and Type | Method and Description |
---|---|
static ReadType |
getOpType(String op)
Parse the read type
|
int |
getValue()
Return the value of the read type
|
boolean |
isCache() |
static ReadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadType NO_CACHE
public static final ReadType CACHE
public static ReadType[] values()
for (ReadType c : ReadType.values()) System.out.println(c);
public static ReadType 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 nullpublic static ReadType getOpType(String op) throws IOException
op
- the String format of the read typeIOException
public int getValue()
public boolean isCache()
Copyright © 2014. All rights reserved.