org.jlab.coda.jevio
Enum EventWriter.IOStatus

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

public static enum EventWriter.IOStatus
extends java.lang.Enum<EventWriter.IOStatus>

This enum denotes the status of a read.
SUCCESS indicates a successful read/write.
END_OF_FILE indicates that we cannot read because an END_OF_FILE has occurred. Technically this means that what ever we are trying to read is larger than the buffer's unread bytes.
EVIO_EXCEPTION indicates that an EvioException was thrown during a read, possibly due to out of range values, such as a negative start position.
CANNOT_OPEN_FILE that we cannot write because the destination file cannot be opened.
UNKNOWN_ERROR indicates that an unrecoverable error has occurred.


Enum Constant Summary
CANNOT_OPEN_FILE
           
END_OF_FILE
           
EVIO_EXCEPTION
           
SUCCESS
           
UNKNOWN_ERROR
           
 
Method Summary
static EventWriter.IOStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EventWriter.IOStatus[] 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 EventWriter.IOStatus SUCCESS

END_OF_FILE

public static final EventWriter.IOStatus END_OF_FILE

EVIO_EXCEPTION

public static final EventWriter.IOStatus EVIO_EXCEPTION

CANNOT_OPEN_FILE

public static final EventWriter.IOStatus CANNOT_OPEN_FILE

UNKNOWN_ERROR

public static final EventWriter.IOStatus UNKNOWN_ERROR
Method Detail

values

public static EventWriter.IOStatus[] 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 (EventWriter.IOStatus c : EventWriter.IOStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EventWriter.IOStatus 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