org.jlab.coda.jevio
Enum EvioFile.WriteStatus

java.lang.Object
  extended by java.lang.Enum<EvioFile.WriteStatus>
      extended by org.jlab.coda.jevio.EvioFile.WriteStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EvioFile.WriteStatus>
Enclosing class:
EvioFile

public static enum EvioFile.WriteStatus
extends java.lang.Enum<EvioFile.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.


Enum Constant Summary
CANNOT_OPEN_FILE
           
EVIO_EXCEPTION
           
SUCCESS
           
UNKNOWN_ERROR
           
 
Method Summary
static EvioFile.WriteStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EvioFile.WriteStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

SUCCESS

public static final EvioFile.WriteStatus SUCCESS

CANNOT_OPEN_FILE

public static final EvioFile.WriteStatus CANNOT_OPEN_FILE

EVIO_EXCEPTION

public static final EvioFile.WriteStatus EVIO_EXCEPTION

UNKNOWN_ERROR

public static final EvioFile.WriteStatus UNKNOWN_ERROR
Method Detail

values

public static EvioFile.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 (EvioFile.WriteStatus c : EvioFile.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 EvioFile.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