Note
this interface is not considered part of the public API.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | IonCursor.
Conveys the type of event that occurred as a result of operating on the cursor. |
| Modifier and Type | Method and Description |
|---|---|
| public IonCursor. | Returns: an Event conveying the result of the operation.Causes the cursor to force completion of the value on which it is currently positioned, if any. |
| public IonCursor. | Returns: an Event conveying the result of the operation.Buffers the entirety of the value on which the cursor is currently positioned. |
| public IonCursor. | Returns: an Event conveying the result of the previous operation.Conveys the result of the previous operation. |
| public IonCursor. | Returns: an Event conveying the result of the operation.Advances the cursor to the next value, skipping the current value (if any). |
| public IonCursor. | Returns: an Event conveying the result of the operation.Steps the cursor into the container value on which the cursor is currently positioned. |
| public IonCursor. | Returns: an Event conveying the result of the operation.Steps the cursor out of the current container, skipping any values in the container that may follow. |
| endStream | back to summary |
|---|---|
| public IonCursor. Causes the cursor to force completion of the value on which it is currently positioned, if any. This method may return:
true will initially return NEEDS_DATA from nextValue() because
it cannot yet be known whether the stream contains the boolean value true or, e.g., the symbol
value trueNorth. In this example, calling this method will return START_SCALAR, with the cursor
positioned on a boolean value.
| |
| fillValue | back to summary |
|---|---|
| public IonCursor. Buffers the entirety of the value on which the cursor is currently positioned. This method may return:
| |
| getCurrentEvent | back to summary |
|---|---|
| public IonCursor. Conveys the result of the previous operation. | |
| nextValue | back to summary |
|---|---|
| public IonCursor. Advances the cursor to the next value, skipping the current value (if any). This method may return:
| |
| stepIntoContainer | back to summary |
|---|---|
| public IonCursor. Steps the cursor into the container value on which the cursor is currently positioned. This method may return:
| |
| stepOutOfContainer | back to summary |
|---|---|
| public IonCursor. Steps the cursor out of the current container, skipping any values in the container that may follow. This method may return:
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IonCursor. | END_CONTAINER
The cursor has reached the end of the current container, and requires an instruction to proceed. |
| public static final IonCursor. | NEEDS_DATA
There is not enough data in the stream to complete the requested operation. |
| public static final IonCursor. | NEEDS_INSTRUCTION
The cursor has completed an operation (e.g. `stepIntoContainer()`) and requires another instruction in order to position itself on the next value. |
| public static final IonCursor. | START_CONTAINER
The cursor is positioned on a container value. |
| public static final IonCursor. | START_SCALAR
The cursor is positioned on a scalar value. |
| public static final IonCursor. | 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()`. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IonCursor. | |
| public static IonCursor. |
| END_CONTAINER | back to summary |
|---|---|
| public static final IonCursor. The cursor has reached the end of the current container, and requires an instruction to proceed. | |
| NEEDS_DATA | back to summary |
|---|---|
| public static final IonCursor. 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 | back to summary |
|---|---|
| public static final IonCursor. The cursor has completed an operation (e.g. `stepIntoContainer()`) and requires another instruction in order to position itself on the next value. | |
| START_CONTAINER | back to summary |
|---|---|
| public static final IonCursor. The cursor is positioned on a container value. | |
| START_SCALAR | back to summary |
|---|---|
| public static final IonCursor. The cursor is positioned on a scalar value. | |
| VALUE_READY | back to summary |
|---|---|
| public static final IonCursor. The cursor has successfully buffered the entirety of the value on which it is currently positioned, as requested by an invocation of `fillValue()`. | |
| Event | back to summary |
|---|---|
| private Event() | |
| valueOf | back to summary |
|---|---|
| public static IonCursor. | |
| values | back to summary |
|---|---|
| public static IonCursor. | |