public interface IonCursor
extends java.io.Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
IonCursor.Event
Conveys the type of event that occurred as a result of operating on the cursor.
|
| Modifier and Type | Method and Description |
|---|---|
IonCursor.Event |
endStream()
Causes the cursor to force completion of the value on which it is currently positioned, if any.
|
IonCursor.Event |
fillValue()
Buffers the entirety of the value on which the cursor is currently positioned.
|
IonCursor.Event |
getCurrentEvent()
Conveys the result of the previous operation.
|
IonCursor.Event |
nextValue()
Advances the cursor to the next value, skipping the current value (if any).
|
IonCursor.Event |
stepIntoContainer()
Steps the cursor into the container value on which the cursor is currently positioned.
|
IonCursor.Event |
stepOutOfContainer()
Steps the cursor out of the current container, skipping any values in the container that may follow.
|
IonCursor.Event nextValue()
IonCursor.Event stepIntoContainer()
IonCursor.Event stepOutOfContainer()
IonCursor.Event fillValue()
IonCursor.Event getCurrentEvent()
IonCursor.Event endStream()
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.IonException - if this method is called below the top level or when the cursor is positioned on an
incomplete value.