| Modifier and Type | Class and Description |
|---|---|
| private static class | _Private_Utils.
Private to route clients through the static methods, which can optimize the empty-list case. |
| private static class | _Private_Utils.
Private to route clients through the static methods, which can optimize the empty-list case. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Charset | |
| public static final String | |
| public static final byte[] | EMPTY_BYTE_ARRAY
Just a zero-length byte array, used to avoid allocation. |
| public static final int[] | EMPTY_INT_ARRAY
Just a zero-length int array, used to avoid allocation. |
| public static final ListIterator | |
| public static final String[] | EMPTY_STRING_ARRAY
Just a zero-length String array, used to avoid allocation. |
| public static final int | MAX_LOOKAHEAD_UTF16
(null.timestamp) requires 11 ASCII chars to distinguish from (null.timestamps) aka (null '.' 'timestamps') |
| public static final boolean | READER_HASNEXT_REMOVED
Marker for code points relevant to removal of IonReader.hasNext(). |
| public static final TimeZone | |
| public static final Charset | |
| public static final String | UTF8_CHARSET_NAME
The string |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> void | |
| public static <T> void | |
| public static byte[] | |
| public static SymbolTable | Returns: a new mutableSymbolTable instance; not nullCreates a mutable copy of this local symbol table. |
| public static byte[] | |
| public static String[] | |
| public static String | |
| public static final <T> ListIterator | |
| public static byte[] | |
| public static final int | getSidForSymbolTableField(String text)
Returns the symbol ID matching a system symbol text of a local or shared symtab field. |
| public static SymbolTable | initialSymtab(_Private_LocalSymbolTableFactory
the factory to use to build the local symbol table, never null lstFactory, SymbolTable the default system symtab, which will be used if the first
import in defaultSystemSymtab, SymbolTable... imports isn't a system symtab, never nullthe set of shared symbol tables to import; may be null or empty.
The first (and only the first) may be a system table, in which case the
imports)defaultSystemSymtab is ignored.Returns a minimal symtab that, either system or local depending on the given values, that supports representation as an IonStruct. |
| public static final Iterator | |
| public static final Iterator | |
| public static boolean | isNonSymbolScalar(IonType type)
Determines whether the passed-in data type is a scalar and not a symbol. |
| public static boolean | |
| public static Iterator | |
| public static byte[] | |
| public static String | |
| public static byte[] | |
| public static SymbolToken | |
| public static void | localize(SymbolTable symtab, SymbolToken[]
may be mutated, replacing entries with localized updates! syms, int count)
|
| public static void | localize(SymbolTable symtab, SymbolToken[]
may be mutated, replacing entries with localized updates! syms)
|
| private static boolean | localSymtabExtends(SymbolTable superset, SymbolTable subset)
Determines, for two local symbol tables, whether the passed-in |
| public static _Private_LocalSymbolTableFactory | Returns: a newLocalSymbolTableAsStruct.the ValueFactory from which to construct the IonStruct representation of the LST imageFactory)
Deprecated
due to DOM entanglement. Streaming applications should use
LocalSymbolTable#DEFAULT_LST_FACTORY.
Trampoline to |
| public static SymbolTable | |
| public static SymbolTable | |
| public static SymbolTable | newSharedSymtab(String name, int version, SymbolTable
may be null. priorSymtab, Iterator<String> symbols)As per |
| public static SymbolTable | |
| public static SymbolTokenImpl | |
| public static SymbolTokenImpl | |
| public static SymbolToken | |
| public static SymbolToken | |
| public static SymbolToken[] | Returns: not null.may be null or empty. text)Validates each text element. |
| public static SymbolToken[] | |
| public static int | Returns: the number of bytes read from the stream. May be less thanbuf.length if EOF is encountered before reading that far.The stream to read from. in, byte[] The buffer to read to. buf)Calls |
| public static int | Returns: the number of bytes read from the stream. May be less thanlength if EOF is encountered before reading that far.The stream to read from. in, byte[] The buffer to read to. buf, int The offset of the buffer to read from. offset, int The length of the data to read. length)Calls |
| public static boolean | |
| public static boolean | |
| public static final Iterator | |
| public static final Iterator | |
| public static boolean | Returns: true ifsuperset extends subset, false if noteither a system or local symbol table superset, SymbolTable either a system or local symbol table subset)Determines whether the passed-in |
| public static boolean | |
| public static final boolean | symtabIsSharedNotSystem(SymbolTable symtab)
Indicates whether a table is shared but not a system table. |
| public static IonStruct | |
| public static SymbolTable | |
| public static int[] | |
| public static String[] | Returns: not null.Extracts the non-null text from a list of symbol tokens. |
| public static byte[] | |
| public static String | Returns: the decoded string, not null.the data to decode. bytes)Decodes a UTF-8 byte sequence to a String. |
| public static String | |
| public static boolean | Returns: boolean true if v can be a local symbol table otherwise falseChecks the passed in value and returns whether or not the value could be a local symbol table. |
| public static void |
| ASCII_CHARSET | back to summary |
|---|---|
| public static final Charset ASCII_CHARSET | |
| ASCII_CHARSET_NAME | back to summary |
|---|---|
| public static final String ASCII_CHARSET_NAME | |
| EMPTY_BYTE_ARRAY | back to summary |
|---|---|
| public static final byte[] EMPTY_BYTE_ARRAY Just a zero-length byte array, used to avoid allocation. | |
| EMPTY_INT_ARRAY | back to summary |
|---|---|
| public static final int[] EMPTY_INT_ARRAY Just a zero-length int array, used to avoid allocation. | |
| EMPTY_ITERATOR | back to summary |
|---|---|
| public static final ListIterator<?> EMPTY_ITERATOR | |
| EMPTY_STRING_ARRAY | back to summary |
|---|---|
| public static final String[] EMPTY_STRING_ARRAY Just a zero-length String array, used to avoid allocation. | |
| MAX_LOOKAHEAD_UTF16 | back to summary |
|---|---|
| public static final int MAX_LOOKAHEAD_UTF16 (null.timestamp) requires 11 ASCII chars to distinguish from (null.timestamps) aka (null '.' 'timestamps') | |
| READER_HASNEXT_REMOVED | back to summary |
|---|---|
| public static final boolean READER_HASNEXT_REMOVED Marker for code points relevant to removal of IonReader.hasNext(). | |
| UTC | back to summary |
|---|---|
| public static final TimeZone UTC The UTC | |
| UTF8_CHARSET | back to summary |
|---|---|
| public static final Charset UTF8_CHARSET | |
| UTF8_CHARSET_NAME | back to summary |
|---|---|
| public static final String UTF8_CHARSET_NAME The string | |
| _Private_Utils | back to summary |
|---|---|
| public _Private_Utils() | |
| addAll | back to summary |
|---|---|
| public static <T> void addAll(Collection<T> dest, Iterator<T> src) | |
| addAllNonNull | back to summary |
|---|---|
| public static <T> void addAllNonNull(Collection<T> dest, Iterator<T> src) | |
| convertUtf16UnitsToUtf8 | back to summary |
|---|---|
| public static byte[] convertUtf16UnitsToUtf8(String text) This differs from | |
| copyLocalSymbolTable | back to summary |
|---|---|
| public static SymbolTable copyLocalSymbolTable(SymbolTable symtab) throws SubstituteSymbolTableException Creates a mutable copy of this local symbol table. The cloned table
will be created in the context of the same Note that the resulting symbol table holds a distinct, deep copy of the given table, adding symbols on either instances will not modify the other.
| |
| copyOf | back to summary |
|---|---|
| public static byte[] copyOf(byte[] original, int newLength) Replacement for Java6 | |
| copyOf | back to summary |
|---|---|
| public static String[] copyOf(String[] original, int newLength) | |
| decode | back to summary |
|---|---|
| public static String decode(byte[] bytes, Charset charset) Decodes a byte sequence into a string, given a
This method is preferred to
| |
| emptyIterator | back to summary |
|---|---|
public static final <T> ListIterator
| |
| encode | back to summary |
|---|---|
| public static byte[] encode(String s, Charset charset) Encodes a String into bytes of a given encoding.
This method is preferred to
| |
| getSidForSymbolTableField | back to summary |
|---|---|
| public static final int getSidForSymbolTableField(String text) Returns the symbol ID matching a system symbol text of a local or shared symtab field. | |
| initialSymtab | back to summary |
|---|---|
| public static SymbolTable initialSymtab(_Private_LocalSymbolTableFactory lstFactory, SymbolTable defaultSystemSymtab, SymbolTable... imports) Returns a minimal symtab that, either system or local depending on the given values, that supports representation as an IonStruct. If the imports are empty, the default system symtab is returned.
| |
| intIterator | back to summary |
|---|---|
| public static final Iterator | |
| intIterator | back to summary |
|---|---|
| public static final Iterator | |
| isNonSymbolScalar | back to summary |
|---|---|
| public static boolean isNonSymbolScalar(IonType type) Determines whether the passed-in data type is a scalar and not a symbol. | |
| isTrivialTable | back to summary |
|---|---|
| public static boolean isTrivialTable(SymbolTable table) Is the table null, system, or local without imported symbols? | |
| iterate | back to summary |
|---|---|
| public static Iterator Create a value iterator from a reader. Primarily a trampoline for access permission. | |
| loadFileBytes | back to summary |
|---|---|
| public static byte[] loadFileBytes(File file) throws IOException | |
| loadReader | back to summary |
|---|---|
| public static String loadReader(Reader in) throws IOException | |
| loadStreamBytes | back to summary |
|---|---|
| public static byte[] loadStreamBytes(InputStream in) throws IOException | |
| localize | back to summary |
|---|---|
| public static SymbolToken localize(SymbolTable symtab, SymbolToken sym) | |
| localize | back to summary |
|---|---|
public static void localize(SymbolTable symtab, SymbolToken[] syms, int count)
| |
| localize | back to summary |
|---|---|
public static void localize(SymbolTable symtab, SymbolToken[] syms)
| |
| localSymtabExtends | back to summary |
|---|---|
| private static boolean localSymtabExtends(SymbolTable superset, SymbolTable subset) Determines, for two local symbol tables, whether the passed-in | |
| newLocalSymbolTableAsStructFactory | back to summary |
|---|---|
| public static _Private_LocalSymbolTableFactory newLocalSymbolTableAsStructFactory(ValueFactory imageFactory)
Deprecated due to DOM entanglement. Streaming applications should use
Trampoline to
| |
| newSharedSymtab | back to summary |
|---|---|
| public static SymbolTable newSharedSymtab(IonStruct ionRep) | |
| newSharedSymtab | back to summary |
|---|---|
| public static SymbolTable newSharedSymtab(IonReader reader, boolean alreadyInStruct) | |
| newSharedSymtab | back to summary |
|---|---|
| public static SymbolTable newSharedSymtab(String name, int version, SymbolTable priorSymtab, Iterator<String> symbols) As per
| |
| newSubstituteSymtab | back to summary |
|---|---|
| public static SymbolTable newSubstituteSymtab(SymbolTable original, int version, int maxId) | |
| newSymbolToken | back to summary |
|---|---|
public static SymbolTokenImpl newSymbolToken(String text, int sid)
| |
| newSymbolToken | back to summary |
|---|---|
public static SymbolTokenImpl newSymbolToken(int sid)
| |
| newSymbolToken | back to summary |
|---|---|
| public static SymbolToken newSymbolToken(SymbolTable symtab, String text) Checks symbol content.
| |
| newSymbolToken | back to summary |
|---|---|
public static SymbolToken newSymbolToken(SymbolTable symtab, int sid)
| |
| newSymbolTokens | back to summary |
|---|---|
| public static SymbolToken[] newSymbolTokens(SymbolTable symtab, String... text) Validates each text element.
| |
| newSymbolTokens | back to summary |
|---|---|
public static SymbolToken[] newSymbolTokens(SymbolTable symtab, int... syms)
| |
| readFully | back to summary |
|---|---|
| public static int readFully(InputStream in, byte[] buf) throws IOException Calls
| |
| readFully | back to summary |
|---|---|
| public static int readFully(InputStream in, byte[] buf, int offset, int length) throws IOException Calls
| |
| safeEquals | back to summary |
|---|---|
| public static boolean safeEquals(Object a, Object b) | |
| streamIsIonBinary | back to summary |
|---|---|
| public static boolean streamIsIonBinary(PushbackInputStream pushback) throws IonException, IOException | |
| stringIterator | back to summary |
|---|---|
| public static final Iterator | |
| stringIterator | back to summary |
|---|---|
| public static final Iterator | |
| symtabExtends | back to summary |
|---|---|
| public static boolean symtabExtends(SymbolTable superset, SymbolTable subset) Determines whether the passed-in If both are LSTs, their imported tables and locally declared symbols are exhaustively checked, which can be expensive. Callers of this method should cache the results of these comparisons.
| |
| symtabIsLocalAndNonTrivial | back to summary |
|---|---|
| public static boolean symtabIsLocalAndNonTrivial(SymbolTable symtab) | |
| symtabIsSharedNotSystem | back to summary |
|---|---|
| public static final boolean symtabIsSharedNotSystem(SymbolTable symtab) Indicates whether a table is shared but not a system table. | |
| symtabTree | back to summary |
|---|---|
public static IonStruct symtabTree(SymbolTable symtab, ValueFactory valueFactory)
| |
| systemSymtab | back to summary |
|---|---|
| public static SymbolTable systemSymtab(int version) | |
| toSids | back to summary |
|---|---|
| public static int[] toSids(SymbolToken[] symbols, int count) | |
| toStrings | back to summary |
|---|---|
| public static String[] toStrings(SymbolToken[] symbols, int count) Extracts the non-null text from a list of symbol tokens.
| |
| utf8 | back to summary |
|---|---|
| public static byte[] utf8(String s) Encodes a String into UTF-8 bytes.
This method is preferred to
| |
| utf8 | back to summary |
|---|---|
| public static String utf8(byte[] bytes) Decodes a UTF-8 byte sequence to a String.
This method is preferred to
| |
| utf8FileToString | back to summary |
|---|---|
| public static String utf8FileToString(File file) throws IonException, IOException | |
| valueIsLocalSymbolTable | back to summary |
|---|---|
| public static boolean valueIsLocalSymbolTable(_Private_IonValue v) Checks the passed in value and returns whether or not the value could be a local symbol table. It does this by checking the type and annotations.
| |
| writeAsBase64 | back to summary |
|---|---|
| public static void writeAsBase64(InputStream byteStream, Appendable out) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Integer | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| _len | back to summary |
|---|---|
| private final int _len | |
| _pos | back to summary |
|---|---|
| private int _pos | |
| _values | back to summary |
|---|---|
| private final int[] _values | |
| IntIterator | back to summary |
|---|---|
| pack-priv IntIterator(int[] values) | |
| IntIterator | back to summary |
|---|---|
| pack-priv IntIterator(int[] values, int off, int len) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Integer next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private final String[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| _len | back to summary |
|---|---|
| private final int _len | |
| _pos | back to summary |
|---|---|
| private int _pos | |
| _values | back to summary |
|---|---|
| private final String[] _values | |
| StringIterator | back to summary |
|---|---|
| pack-priv StringIterator(String[] values, int len) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public String next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |