org.jlab.coda.jevio
Enum EvioReader.WriteStatus
java.lang.Object
java.lang.Enum<EvioReader.WriteStatus>
org.jlab.coda.jevio.EvioReader.WriteStatus
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EvioReader.WriteStatus>
- Enclosing class:
- EvioReader
public static enum EvioReader.WriteStatus
- extends java.lang.Enum<EvioReader.WriteStatus>
This enum
denotes the status of a write.
SUCCESS indicates a successful write.
CANNOT_OPEN_FILE indicates that we cannot write because the destination file cannot be opened.
EVIO_EXCEPTION indicates that an EvioException was thrown during a write.
UNKNOWN_ERROR indicates that an unrecoverable error has occurred.
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SUCCESS
public static final EvioReader.WriteStatus SUCCESS
CANNOT_OPEN_FILE
public static final EvioReader.WriteStatus CANNOT_OPEN_FILE
EVIO_EXCEPTION
public static final EvioReader.WriteStatus EVIO_EXCEPTION
UNKNOWN_ERROR
public static final EvioReader.WriteStatus UNKNOWN_ERROR
values
public static EvioReader.WriteStatus[] 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 (EvioReader.WriteStatus c : EvioReader.WriteStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EvioReader.WriteStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null