References Deprecated
IonTextReader is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
IonReaderTextSystemX, which in turn is most
often called by the IonReaderTextUserX. One of these two (system
reader or user reader) should be invoked by the user for reading text Ion
data. This class is not intended for general use.
This reader scan skip values and in doing so it does not
materialize the contents and it does not validate the contents.
TODO amazon-ion/ion-java/issues/7 We may want to make validation on skip optional.
This manages the value buffer (_v ValueVariant) and the lob
content (_lob_*) which is cached in some cases. It's main
job however is recognizing the correct order of the input
tokens. This is done in parse_to_next_value (called by hasNext).
The current state is represented by an int (whose value should
be one of the values of the STATE_* constants). The legal
transitions are stored in TransitionActions and TransitionActions2.
The first (TransitionActions) is a two dimensional array whose
dimensions are state and input token. The value stored is an
int that represents the action to be taken (ACTION_*). The
second copy of this data (TransitionActions2) is a one dimensional
array built from the first and manually dereferenced in the
parse_to_next_value method. This turns out to be a significant
performance gain (| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv SymbolToken[] | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv IonType[] | |
| pack-priv int | |
| pack-priv StringBuilder | |
| pack-priv boolean | |
| pack-priv UnifiedSavePointManagerX. | |
| pack-priv boolean | |
| pack-priv static final boolean | |
| pack-priv boolean | |
| pack-priv String | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv IonReaderTextRawX. | |
| pack-priv int | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv IonType | |
| pack-priv IonType | |
| pack-priv IonReaderTextRawTokensX | |
| pack-priv int | |
| pack-priv _Private_ScalarConversions. | |
| pack-priv int | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv IonType | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int[][] | |
| pack-priv static final int[] | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private final void | |
| public <T> T | Returns: This implementation always returns null.The type token of the requested facet type. facetType)Implements com. Returns a facet of this subject if supported. |
| public abstract BigInteger | bigIntegerValue()
Redeclares com. Returns the current value as a |
| private final void | |
| private final void | |
| protected final void | |
| private final void | |
| private final void | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private final void | |
| private final void | |
| private final void | |
| private final void | |
| private final String | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private int | |
| private final int | |
| private final int | |
| private final String | |
| private final String | |
| public IonType | |
| public int | getDepth()
Implements com. Returns the depth into the Ion value that this reader has traversed. |
| public int | getFieldId()
Implements com. /** Gets the symbol ID of the field name attached to the current value. |
| public String | getFieldName()
Implements com. Return the field name of the current value. |
| public SymbolToken | getFieldNameSymbol()
Implements com. Gets the current value's field name as a symbol token (text + ID). |
| pack-priv final String | |
| public SymbolTable | getSymbolTable()
Implements com. Returns the symbol table that is applicable to the current value. |
| public IonType | getType()
Implements com. Returns the type of the current value, or null if there is no current value. |
| protected final boolean | |
| public boolean | Returns: true if more data remains, false on eofImplements com. this looks forward to see if there is an upcoming value if there is it returns true. |
| protected final void | |
| protected final void | |
| protected final void | |
| private boolean | |
| public boolean | isInStruct()
Implements com. Determines whether this reader is currently traversing the fields of an Ion struct. |
| public Iterator | iterateTypeAnnotations()
Implements com. Return the annotations on the curent value as an iterator. |
| pack-priv static int[] | |
| pack-priv static final int[][] | |
| public IonType | Returns: type of the next value, or null if there is none.Implements com. returns the type of the next value in the stream. |
| protected final void | |
| protected final void | |
| protected final void | |
| private final SymbolToken | |
| private final void | |
| private final void | |
| protected final void | |
| private final void | |
| private final void | |
| private final void | |
| public void | stepIn()
Implements com. Positions the reader just before the contents of the current value, which must be a container (list, sexp, or struct). |
| public void | stepOut()
Implements com. Positions the iterator after the current parent's value, moving up one level in the data hierarchy. |
| protected final StringBuilder | |
| protected void | |
| private final IonType |
| _annotation_count | back to summary |
|---|---|
| pack-priv int _annotation_count | |
| _annotations | back to summary |
|---|---|
| pack-priv SymbolToken[] _annotations | |
| _container_is_struct | back to summary |
|---|---|
| pack-priv boolean _container_is_struct | |
| _container_prohibits_commas | back to summary |
|---|---|
| pack-priv boolean _container_prohibits_commas | |
| _container_state_stack | back to summary |
|---|---|
| pack-priv IonType[] _container_state_stack | |
| _container_state_top | back to summary |
|---|---|
| pack-priv int _container_state_top | |
| _current_value_buffer | back to summary |
|---|---|
| pack-priv StringBuilder _current_value_buffer | |
| _current_value_buffer_loaded | back to summary |
|---|---|
| pack-priv boolean _current_value_buffer_loaded | |
| _current_value_save_point | back to summary |
|---|---|
| pack-priv UnifiedSavePointManagerX. | |
| _current_value_save_point_loaded | back to summary |
|---|---|
| pack-priv boolean _current_value_save_point_loaded | |
| _debug | back to summary |
|---|---|
| pack-priv static final boolean _debug | |
| _eof | back to summary |
|---|---|
| pack-priv boolean _eof | |
| _field_name | back to summary |
|---|---|
| pack-priv String _field_name | |
| _field_name_sid | back to summary |
|---|---|
| pack-priv int _field_name_sid | |
| _has_next_called | back to summary |
|---|---|
| pack-priv boolean _has_next_called | |
| _lob_actual_len | back to summary |
|---|---|
| pack-priv int _lob_actual_len | |
| _lob_bytes | back to summary |
|---|---|
| pack-priv byte[] _lob_bytes | |
| _lob_loaded | back to summary |
|---|---|
| pack-priv IonReaderTextRawX. | |
| _lob_token | back to summary |
|---|---|
| pack-priv int _lob_token | |
| _lob_value_position | back to summary |
|---|---|
| pack-priv long _lob_value_position | |
| _lob_value_set | back to summary |
|---|---|
| pack-priv boolean _lob_value_set | |
| _nesting_parent | back to summary |
|---|---|
| pack-priv IonType _nesting_parent | |
| _null_type | back to summary |
|---|---|
| pack-priv IonType _null_type | |
| _scanner | back to summary |
|---|---|
| pack-priv IonReaderTextRawTokensX _scanner | |
| _state | back to summary |
|---|---|
| pack-priv int _state | |
| _v | back to summary |
|---|---|
| pack-priv _Private_ScalarConversions. | |
| _value_keyword | back to summary |
|---|---|
| pack-priv int _value_keyword | |
| _value_start_column | back to summary |
|---|---|
| pack-priv long _value_start_column | |
| _value_start_line | back to summary |
|---|---|
| pack-priv long _value_start_line | |
| _value_start_offset | back to summary |
|---|---|
| pack-priv long _value_start_offset | |
| _value_type | back to summary |
|---|---|
| pack-priv IonType _value_type | |
| ACTION_count | back to summary |
|---|---|
| pack-priv static final int ACTION_count | |
| ACTION_EAT_COMMA | back to summary |
|---|---|
| pack-priv static final int ACTION_EAT_COMMA | |
| ACTION_EOF | back to summary |
|---|---|
| pack-priv static final int ACTION_EOF | |
| ACTION_FINISH_CONTAINER | back to summary |
|---|---|
| pack-priv static final int ACTION_FINISH_CONTAINER | |
| ACTION_FINISH_DATAGRAM | back to summary |
|---|---|
| pack-priv static final int ACTION_FINISH_DATAGRAM | |
| ACTION_FINISH_LOB | back to summary |
|---|---|
| pack-priv static final int ACTION_FINISH_LOB | |
| ACTION_LOAD_ANNOTATION | back to summary |
|---|---|
| pack-priv static final int ACTION_LOAD_ANNOTATION | |
| ACTION_LOAD_FIELD_NAME | back to summary |
|---|---|
| pack-priv static final int ACTION_LOAD_FIELD_NAME | |
| ACTION_LOAD_SCALAR | back to summary |
|---|---|
| pack-priv static final int ACTION_LOAD_SCALAR | |
| ACTION_MINUS_INF | back to summary |
|---|---|
| pack-priv static final int ACTION_MINUS_INF | |
| ACTION_NOT_DEFINED | back to summary |
|---|---|
| pack-priv static final int ACTION_NOT_DEFINED | |
| ACTION_PLUS_INF | back to summary |
|---|---|
| pack-priv static final int ACTION_PLUS_INF | |
| ACTION_START_LIST | back to summary |
|---|---|
| pack-priv static final int ACTION_START_LIST | |
| ACTION_START_LOB | back to summary |
|---|---|
| pack-priv static final int ACTION_START_LOB | |
| ACTION_START_SEXP | back to summary |
|---|---|
| pack-priv static final int ACTION_START_SEXP | |
| ACTION_START_STRUCT | back to summary |
|---|---|
| pack-priv static final int ACTION_START_STRUCT | |
| DEFAULT_ANNOTATION_COUNT | back to summary |
|---|---|
| private static final int DEFAULT_ANNOTATION_COUNT | |
| DEFAULT_STACK_DEPTH | back to summary |
|---|---|
| private static final int DEFAULT_STACK_DEPTH | |
| STATE_AFTER_VALUE_CONTENTS | back to summary |
|---|---|
| pack-priv static final int STATE_AFTER_VALUE_CONTENTS | |
| STATE_BEFORE_ANNOTATION_CONTAINED | back to summary |
|---|---|
| pack-priv static final int STATE_BEFORE_ANNOTATION_CONTAINED | |
| STATE_BEFORE_ANNOTATION_DATAGRAM | back to summary |
|---|---|
| pack-priv static final int STATE_BEFORE_ANNOTATION_DATAGRAM | |
| STATE_BEFORE_ANNOTATION_SEXP | back to summary |
|---|---|
| pack-priv static final int STATE_BEFORE_ANNOTATION_SEXP | |
| STATE_BEFORE_FIELD_NAME | back to summary |
|---|---|
| pack-priv static final int STATE_BEFORE_FIELD_NAME | |
| STATE_BEFORE_VALUE_CONTENT | back to summary |
|---|---|
| pack-priv static final int STATE_BEFORE_VALUE_CONTENT | |
| STATE_BEFORE_VALUE_CONTENT_SEXP | back to summary |
|---|---|
| pack-priv static final int STATE_BEFORE_VALUE_CONTENT_SEXP | |
| STATE_EOF | back to summary |
|---|---|
| pack-priv static final int STATE_EOF | |
| STATE_IN_BLOB_CONTENT | back to summary |
|---|---|
| pack-priv static final int STATE_IN_BLOB_CONTENT | |
| STATE_IN_CLOB_DOUBLE_QUOTED_CONTENT | back to summary |
|---|---|
| pack-priv static final int STATE_IN_CLOB_DOUBLE_QUOTED_CONTENT | |
| STATE_IN_CLOB_TRIPLE_QUOTED_CONTENT | back to summary |
|---|---|
| pack-priv static final int STATE_IN_CLOB_TRIPLE_QUOTED_CONTENT | |
| STATE_IN_LONG_STRING | back to summary |
|---|---|
| pack-priv static final int STATE_IN_LONG_STRING | |
| STATE_MAX | back to summary |
|---|---|
| pack-priv static final int STATE_MAX | |
| TransitionActions | back to summary |
|---|---|
| pack-priv static final int[][] TransitionActions | |
| TransitionActions2 | back to summary |
|---|---|
| pack-priv static final int[] TransitionActions2 | |
| UNKNOWN_SIZE | back to summary |
|---|---|
| protected static final int UNKNOWN_SIZE | |
| IonReaderTextRawX | back to summary |
|---|---|
| protected IonReaderTextRawX() | |
| append_annotation | back to summary |
|---|---|
| private final void append_annotation(SymbolToken sym) | |
| asFacet | back to summary |
|---|---|
| public <T> T asFacet(Class<T> facetType) Implements com. Doc from com. Returns a facet of this subject if supported.
| |
| bigIntegerValue | back to summary |
|---|---|
| public abstract BigInteger bigIntegerValue() Redeclares com. Doc from com. Returns the current value as a | |
| check_container_close | back to summary |
|---|---|
| private final void check_container_close(IonType container, int expectedToken, int actualToken) | |
| clear_annotation_list | back to summary |
|---|---|
| private final void clear_annotation_list() | |
| clear_current_value_buffer | back to summary |
|---|---|
| protected final void clear_current_value_buffer() | |
| clear_fieldname | back to summary |
|---|---|
| private final void clear_fieldname() | |
| clear_value | back to summary |
|---|---|
| private final void clear_value() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| current_value_is_bool | back to summary |
|---|---|
| private final void current_value_is_bool(boolean value) | |
| current_value_is_null | back to summary |
|---|---|
| private final void current_value_is_null(IonType null_type) | |
| finish_and_save_value | back to summary |
|---|---|
| private final void finish_and_save_value() throws IOException | |
| finish_value | back to summary |
|---|---|
| private final void finish_value(UnifiedSavePointManagerX. | |
| get_action_name | back to summary |
|---|---|
private final String get_action_name(int action)
| |
| get_state_after_annotation | back to summary |
|---|---|
| private final int get_state_after_annotation() | |
| get_state_after_container | back to summary |
|---|---|
| private final int get_state_after_container() | |
| get_state_after_container | back to summary |
|---|---|
| private final int get_state_after_container(int token) | |
| get_state_after_container | back to summary |
|---|---|
| private final int get_state_after_container(IonType container) | |
| get_state_after_value | back to summary |
|---|---|
| private int get_state_after_value() | |
| get_state_at_container_start | back to summary |
|---|---|
| private final int get_state_at_container_start(IonType container) | |
| get_state_int | back to summary |
|---|---|
| private final int get_state_int() | |
| get_state_name | back to summary |
|---|---|
| private final String get_state_name(int state) | |
| get_state_name | back to summary |
|---|---|
| private final String get_state_name() | |
| getContainerType | back to summary |
|---|---|
| public IonType getContainerType() | |
| getDepth | back to summary |
|---|---|
| public int getDepth() Implements com. Doc from com. Returns the depth into the Ion value that this reader has traversed.
At top level the depth is 0, and it increases by one on each call to
| |
| getFieldId | back to summary |
|---|---|
| public int getFieldId() Implements com. Doc from com. /** Gets the symbol ID of the field name attached to the current value. This is an "expert method": correct use requires deep understanding of the Ion binary format. You almost certainly don't want to use it.
| |
| getFieldName | back to summary |
|---|---|
| public String getFieldName() Implements com. Doc from com. Return the field name of the current value. Or null if there is no valid current value or if the current value is not a field of a struct. | |
| getFieldNameSymbol | back to summary |
|---|---|
| public SymbolToken getFieldNameSymbol() Implements com. Doc from com. Gets the current value's field name as a symbol token (text + ID).
If the text of the token isn't known, the result's
| |
| getRawFieldName | back to summary |
|---|---|
| pack-priv final String getRawFieldName() | |
| getSymbolTable | back to summary |
|---|---|
| public SymbolTable getSymbolTable() Implements com. Doc from com. Returns the symbol table that is applicable to the current value. This may be either a system or local symbol table. | |
| getType | back to summary |
|---|---|
| public IonType getType() Implements com. Doc from com. Returns the type of the current value, or null if there is no current value. | |
| has_next_raw_value | back to summary |
|---|---|
| protected final boolean has_next_raw_value() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements com. this looks forward to see if there is an upcoming value if there is it returns true. It may have to clean up any value that's partially complete (for example a collection whose annotation has been read and loaded but the user has chosen not to step into the collection).
| |
| init | back to summary |
|---|---|
| protected final void init(UnifiedInputStreamX iis, IonType parent) | |
| init | back to summary |
|---|---|
| protected final void init(UnifiedInputStreamX iis, IonType parent, long start_line, long start_column) | |
| init_once | back to summary |
|---|---|
| protected final void init_once() | |
| is_in_struct_internal | back to summary |
|---|---|
| private boolean is_in_struct_internal() | |
| isInStruct | back to summary |
|---|---|
| public boolean isInStruct() Implements com. Doc from com. Determines whether this reader is currently traversing the fields of an Ion struct. It returns false if the iteration is in a list, a sexp, or a datagram. | |
| iterateTypeAnnotations | back to summary |
|---|---|
| public Iterator Implements com. Doc from com. Return the annotations on the curent value as an iterator. The iterator is empty (hasNext() returns false on the first call) if there are no annotations on the current value.
Implementations *may* throw Note the iterator returned by this method is only valid while
the reader remains positioned on the current value (i.e., before
next, step in, or step out). Use cases that require storing a
value's annotations after advancing past that value should either
copy them from the iterator or call | |
| makeTransition2ActionArray | back to summary |
|---|---|
| pack-priv static int[] makeTransition2ActionArray() | |
| makeTransitionActionArray | back to summary |
|---|---|
| pack-priv static final int[][] makeTransitionActionArray() | |
| next | back to summary |
|---|---|
| public IonType next() Implements com. returns the type of the next value in the stream. it calls hasNext to assure that the value has been properly started, since hasNext prepares a value as a side effect of determining whether or not a value is pending. A NoSuchElementException is thrown if there are not values remaining. Once called if there is a value available it's contents can be accessed through the other public API's (such as getLong()).
| |
| parse_error | back to summary |
|---|---|
| protected final void parse_error(String reason) | |
| parse_error | back to summary |
|---|---|
| protected final void parse_error(Exception e) | |
| parse_to_next_value | back to summary |
|---|---|
| protected final void parse_to_next_value() throws IOException | |
| parseSymbolToken | back to summary |
|---|---|
| private final SymbolToken parseSymbolToken(String context, StringBuilder sb, int t) throws IOException | |
| pop_container_state | back to summary |
|---|---|
| private final void pop_container_state() | |
| push_container_state | back to summary |
|---|---|
| private final void push_container_state(IonType newContainer) | |
| re_init | back to summary |
|---|---|
| protected final void re_init(UnifiedInputStreamX iis, IonType parent, long start_line, long start_column) | |
| set_container_flags | back to summary |
|---|---|
| private final void set_container_flags(IonType t) | |
| set_fieldname | back to summary |
|---|---|
| private final void set_fieldname(SymbolToken sym) | |
| set_state | back to summary |
|---|---|
| private final void set_state(int new_state) | |
| stepIn | back to summary |
|---|---|
| public void stepIn() Implements com. Doc from com. Positions the reader just before the contents of the current value,
which must be a container (list, sexp, or struct).
There's no current value immediately after stepping in, so the next
thing you'll want to do is call
Stepping into a null container (
At any time | |
| stepOut | back to summary |
|---|---|
| public void stepOut() Implements com. Doc from com. Positions the iterator after the current parent's value, moving up one
level in the data hierarchy.
There's no current value immediately after stepping out, so the next
thing you'll want to do is call | |
| token_contents_load | back to summary |
|---|---|
| protected final StringBuilder token_contents_load(int token_type) throws IOException | |
| tokenValueIsFinished | back to summary |
|---|---|
| protected void tokenValueIsFinished() called by super classes to tell us that the current token has been consumed. | |
| top_state | back to summary |
|---|---|
| private final IonType top_state() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| IonReaderTextParsingException | back to summary |
|---|---|
| pack-priv IonReaderTextParsingException(String msg) | |
| IonReaderTextParsingException | back to summary |
|---|---|
| pack-priv IonReaderTextParsingException(Exception e) | |
| IonReaderTextParsingException | back to summary |
|---|---|
| pack-priv IonReaderTextParsingException(String msg, Exception e) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final IonReaderTextRawX. | |
| public static final IonReaderTextRawX. | |
| public static final IonReaderTextRawX. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IonReaderTextRawX. | |
| public static IonReaderTextRawX. |
| EMPTY | back to summary |
|---|---|
| public static final IonReaderTextRawX. | |
| FINISHED | back to summary |
|---|---|
| public static final IonReaderTextRawX. | |
| READ | back to summary |
|---|---|
| public static final IonReaderTextRawX. | |
| LOB_STATE | back to summary |
|---|---|
| private LOB_STATE() | |
| valueOf | back to summary |
|---|---|
| public static IonReaderTextRawX. | |
| values | back to summary |
|---|---|
| public static IonReaderTextRawX. | |