Top Inners Fields Constructors Methods
com.amazon.ion.impl

pack-priv final Class IonBinary

extends Object
Class Inheritance
Static Imports
com.amazon.ion.impl._Private_IonConstants.BINARY_VERSION_MARKER_SIZE, ._Private_Utils.EMPTY_BYTE_ARRAY, ._Private_Utils.readFully, com.amazon.ion.util.IonStreamUtils.isIonBinary

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
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 boolean
private static final Double
private static final BigInteger
pack-priv static final int
private static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
isNibbleZero(BigDecimal bd)

Would this value have a zero length-nibble?

public static int
lenAnnotationListWithLen(String[] annotations, SymbolTable symbolTable)

public static int
public static int
lenInt(long longVal)

public static int
lenInt(BigInteger bi, boolean force_zero_writes)

public static int
public static int
public static int
public static int
lenIonDecimal(BigDecimal
must not be null.
bd
)

public static int
public static int
lenIonFloat(double value)

public static int
public static int
lenIonInt(long v)

public static int
public static int
public static int
public static int
lenIonString(String
may be null.
v
)

public static int
public static int
lenIonTimestamp(Timestamp
may be null
di
)

this method computes the output length of this timestamp value in the Ion binary format.

public static int
public static int

Returns:

zero if valuelen < 14
lenLenFieldWithOptionalNibble
(int valuelen)

The size of length value when short lengths are recorded in the typedesc low-nibble.

public static int
lenTypeDescWithAppropriateLenField(int type, int valuelen)

public static int

Returns:

zero if input is zero
lenUInt
(long longVal)

public static int
public static int
lenVarInt(long longVal)

public static int
lenVarUInt(long longVal)

Variable-length, high-bit-terminating integer, 7 data bits per byte.

public static final int
public static void
readAll(InputStream
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.
len
)

Uses InputStream#read(byte[], int, int) until the entire length is read.

pack-priv static void
public static BigInteger
unsignedLongToBigInteger(int signum, long val)

Utility method to convert an unsigned magnitude stored as a long to a BigInteger.

public static void
verifyBinaryVersionMarker(IonBinary.Reader
must not be null.
reader
)

Verifies that a reader starts with a valid Ion cookie, throwing an exception if it does not.

public static int
writeIonInt(OutputStream userstream, long value, int len)

public static int
writeString(OutputStream userstream, String value)

public static int
writeTypeDescWithLength(OutputStream userstream, int typeid, int lenOfLength, int valueLength)

public static int
writeTypeDescWithLength(OutputStream userstream, int typeid, int valueLength)

public static int
writeVarUInt(OutputStream userstream, long value)

public static int
writeVarUInt(OutputStream userstream, long value, int len, boolean force_zero_write)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait