Package com.amazon.ion
Enum Class IonCursor.Event
- All Implemented Interfaces:
Serializable,Comparable<IonCursor.Event>,Constable
- Enclosing interface:
IonCursor
Conveys the type of event that occurred as a result of operating on the cursor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe cursor has reached the end of the current container, and requires an instruction to proceed.There is not enough data in the stream to complete the requested operation.The cursor has completed an operation (e.g.The cursor is positioned on a container value.The cursor is positioned on a scalar value.The cursor has successfully buffered the entirety of the value on which it is currently positioned, as requested by an invocation of `fillValue()`. -
Method Summary
Modifier and TypeMethodDescriptionstatic IonCursor.EventReturns the enum constant of this class with the specified name.static IonCursor.Event[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEEDS_DATA
There is not enough data in the stream to complete the requested operation. The operation should be retried when more data is available. Note that there is no way to "cancel" a previously requested operation; requesting a different operation after a `NEEDS_DATA` event has undefined behavior. -
NEEDS_INSTRUCTION
The cursor has completed an operation (e.g. `stepIntoContainer()`) and requires another instruction in order to position itself on the next value. -
START_SCALAR
The cursor is positioned on a scalar value. -
VALUE_READY
The cursor has successfully buffered the entirety of the value on which it is currently positioned, as requested by an invocation of `fillValue()`. -
START_CONTAINER
The cursor is positioned on a container value. -
END_CONTAINER
The cursor has reached the end of the current container, and requires an instruction to proceed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-