IonReader facet providing the ability to retrieve
Spans (abstract value positions) and seek to positions
within the source.Warning
This interface should not be implemented or extended by code outside of this library.
A span may be used to seek a different reader instance than the one that generated it, provided that the two readers have the same source. Violations of this constraint may not be detected reliably, so be careful or you'll get unsatisfying results.
| Modifier and Type | Method and Description |
|---|---|
| public void |
| hoist | back to summary |
|---|---|
| public void hoist(Span span) Seeks this reader to produce the given span as if its values were at
top-level.
The caller cannot
After calling this method, this reader's current span will be empty and
positioned just before the first value of the given span; the caller
must call
Hoisting makes the span's values appear to be at top-level even if they
have containers in the source.
The depth will be zero, and
calls to
| |