public final class _Private_IonConstants
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
_Private_IonConstants.HighNibble |
| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY_MAXIMUM_SIZE |
static int |
BB_INT64_LEN_MAX |
static int |
BB_MAX_7BIT_INT |
static int |
BB_TOKEN_LEN |
static int |
BB_VAR_INT32_LEN_MAX |
static int |
BB_VAR_INT64_LEN_MAX |
static int |
BB_VAR_LEN_MIN |
static byte[] |
BINARY_VERSION_MARKER_1_0
The byte sequence indicating use of Ion 1.0 binary format.
|
static int |
BINARY_VERSION_MARKER_SIZE
The number of bytes in
BINARY_VERSION_MARKER_1_0. |
static int |
False |
static int |
high_surrogate_value |
static int |
INT32_SIZE |
static int |
lnBooleanFalse |
static int |
lnBooleanTrue |
static int |
lnIsEmptyContainer |
static int |
lnIsNull |
static int |
lnIsNullAtom |
static int |
lnIsNullSequence |
static int |
lnIsNullStruct |
static int |
lnIsOrderedStruct |
static int |
lnIsVarLen |
static int |
lnNumericZero |
static int |
low_surrogate_value |
static int |
MAX_LONG_TEXT_SIZE
maximum size of textual representation of a
long. |
static int |
surrogate_mask |
static int |
surrogate_utf32_offset |
static int |
surrogate_utf32_shift |
static int |
surrogate_value_mask |
static int |
tidBlob |
static int |
tidBoolean |
static int |
tidClob |
static int |
tidDATAGRAM |
static int |
tidDecimal |
static int |
tidFloat |
static int |
tidList |
static int |
tidNegInt |
static int |
tidNopPad |
static int |
tidNull |
static int |
tidPosInt |
static int |
tidSexp |
static int |
tidString |
static int |
tidStruct |
static int |
tidSymbol |
static int |
tidTimestamp |
static int |
tidTypedecl |
static int |
tidUnused |
static int |
True |
static java.lang.String |
UNKNOWN_SYMBOL_TEXT_PREFIX
Prefix string used in IonStructs' equality checks.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getLowNibble(int td) |
static int |
getTypeCode(int td)
Extract the type code (high nibble) from a type descriptor.
|
static boolean |
isHighSurrogate(int c) |
static boolean |
isLowSurrogate(int c) |
static boolean |
isSurrogate(int c) |
static int |
makeHighSurrogate(int unicodeScalar) |
static int |
makeLowSurrogate(int unicodeScalar) |
static int |
makeTypeDescriptor(int highNibble,
int lowNibble)
Make a type descriptor from two nibbles; all of which are represented as
ints.
|
static int |
makeUnicodeScalar(int high_surrogate,
int low_surrogate) |
public static final int ARRAY_MAXIMUM_SIZE
public static final int BB_TOKEN_LEN
public static final int BB_VAR_INT32_LEN_MAX
public static final int BB_VAR_INT64_LEN_MAX
public static final int BB_INT64_LEN_MAX
public static final int BB_VAR_LEN_MIN
public static final int BB_MAX_7BIT_INT
public static final int INT32_SIZE
public static final int MAX_LONG_TEXT_SIZE
long.public static final int high_surrogate_value
public static final int low_surrogate_value
public static final int surrogate_mask
public static final int surrogate_value_mask
public static final int surrogate_utf32_offset
public static final int surrogate_utf32_shift
public static final byte[] BINARY_VERSION_MARKER_1_0
public static final int BINARY_VERSION_MARKER_SIZE
BINARY_VERSION_MARKER_1_0.public static final int tidNull
public static final int tidBoolean
public static final int tidPosInt
public static final int tidNegInt
public static final int tidFloat
public static final int tidDecimal
public static final int tidTimestamp
public static final int tidSymbol
public static final int tidString
public static final int tidClob
public static final int tidBlob
public static final int tidList
public static final int tidSexp
public static final int tidStruct
public static final int tidTypedecl
public static final int tidUnused
public static final int tidDATAGRAM
public static final int tidNopPad
public static final int lnIsNull
public static final int lnIsNullAtom
public static final int lnIsNullSequence
public static final int lnIsNullStruct
public static final int lnIsEmptyContainer
public static final int lnIsOrderedStruct
public static final int lnIsVarLen
public static final int lnBooleanTrue
public static final int lnBooleanFalse
public static final int lnNumericZero
public static final int True
public static final int False
public static final java.lang.String UNKNOWN_SYMBOL_TEXT_PREFIX
For example, these two IonValues (nested in the IonStructs) will have distinct keys:
{"$99":random_value},
{$99:random_value}
TODO amazon-ion/ion-java/issues/23 However, there is still a potential failure if one of the
IonStruct's nested value has a field name with text
" -- UNKNOWN SYMBOL TEXT -- $123", and that another nested value
of an IonStruct has a field name with unknown text and sid 123, these
two values will be considered a match within IonStruct's equality checks,
which is wrong.
See IonAssert for another use of this idiom.
public static final int makeUnicodeScalar(int high_surrogate,
int low_surrogate)
public static final int makeHighSurrogate(int unicodeScalar)
public static final int makeLowSurrogate(int unicodeScalar)
public static final boolean isHighSurrogate(int c)
public static final boolean isLowSurrogate(int c)
public static final boolean isSurrogate(int c)
public static final int makeTypeDescriptor(int highNibble,
int lowNibble)
highNibble - must be a positive int between 0x00 and 0x0F.lowNibble - must be a positive int between 0x00 and 0x0F.public static final int getTypeCode(int td)
td - must be a positive int between 0x00 and 0xFF.public static final int getLowNibble(int td)