| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static boolean | Returns: true if the buffer contains GZIPped data; false
if the buffer is null or if the length is too short.the data to check. buffer, int the position in the buffer at which to start reading. offset, int the number of bytes in the buffer that are valid,
starting from length)offset.Determines whether a buffer contains GZIPped data. |
| public static boolean | Returns: true if the buffer contains Ion binary (starting from
offset zero); false if the buffer is null or too short.the data to check. buffer)Determines whether a buffer contains Ion binary data by looking for the presence of the Ion Version Marker at its start. |
| public static boolean | Returns: true if the buffer contains Ion binary (starting from
offset); false if the buffer is null or if the
length is too short.the data to check. buffer, int the position in the buffer at which to start reading. offset, int the number of bytes in the buffer that are valid,
starting from length)offset.Determines whether a buffer contains Ion binary data by looking for the presence of the Ion Version Marker at a given offset. |
| public static void | throwAsIonException(Exception
the exception to wrap. e)Wraps the given Exception with IonException and throws. |
| public static InputStream | unGzip(InputStream in)
Returns a stream that decompresses a stream if it contains GZIPped data, otherwise has no effect on the stream (but may wrap it). |
| public static void | writeBoolList(IonWriter writer, boolean[]
boolean values to populate the list with values)writes an IonList with a series of IonBool values. |
| public static void | writeFloatList(IonWriter writer, float[]
32 bit float values to populate the lists IonFloat's with values)writes an IonList with a series of IonFloat values. |
| public static void | writeFloatList(IonWriter writer, double[]
64 bit float values to populate the lists IonFloat's with values)writes an IonList with a series of IonFloat values. |
| public static void | writeIntList(IonWriter writer, byte[]
signed byte values to populate the lists int's with values)writes an IonList with a series of IonInt values. |
| public static void | writeIntList(IonWriter writer, short[]
signed short values to populate the lists int's with values)writes an IonList with a series of IonInt values. |
| public static void | writeIntList(IonWriter writer, int[]
signed int values to populate the lists int's with values)writes an IonList with a series of IonInt values. |
| public static void | writeIntList(IonWriter writer, long[]
signed long values to populate the lists int's with values)writes an IonList with a series of IonInt values. |
| public static void | writeStringList(IonWriter writer, String[]
Java String to populate the lists IonString's from values)writes an IonList with a series of IonString values. |
| IonStreamUtils | back to summary |
|---|---|
| public IonStreamUtils() | |
| cookieMatches | back to summary |
|---|---|
| private static boolean cookieMatches(byte[] cookie, byte[] buffer, int offset, int length) | |
| isGzip | back to summary |
|---|---|
| public static boolean isGzip(byte[] buffer, int offset, int length) Determines whether a buffer contains GZIPped data.
| |
| isIonBinary | back to summary |
|---|---|
| public static boolean isIonBinary(byte[] buffer) Determines whether a buffer contains Ion binary data by looking for the
presence of the Ion Version Marker at its start.
A
| |
| isIonBinary | back to summary |
|---|---|
| public static boolean isIonBinary(byte[] buffer, int offset, int length) Determines whether a buffer contains Ion binary data by looking for the
presence of the Ion Version Marker at a given offset.
A
| |
| throwAsIonException | back to summary |
|---|---|
| public static void throwAsIonException(Exception e) Wraps the given Exception with IonException and throws.
| |
| unGzip | back to summary |
|---|---|
| public static InputStream unGzip(InputStream in) throws IOException Returns a stream that decompresses a stream if it contains GZIPped data, otherwise has no effect on the stream (but may wrap it). | |
| writeBoolList | back to summary |
|---|---|
| public static void writeBoolList(IonWriter writer, boolean[] values) throws IOException writes an IonList with a series of IonBool values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |
| writeFloatList | back to summary |
|---|---|
| public static void writeFloatList(IonWriter writer, float[] values) throws IOException writes an IonList with a series of IonFloat values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally. Note that since, currently, IonFloat is a 64 bit float this is a helper that simply casts the passed in floats to double before writing them.
| |
| writeFloatList | back to summary |
|---|---|
| public static void writeFloatList(IonWriter writer, double[] values) throws IOException writes an IonList with a series of IonFloat values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |
| writeIntList | back to summary |
|---|---|
| public static void writeIntList(IonWriter writer, byte[] values) throws IOException writes an IonList with a series of IonInt values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |
| writeIntList | back to summary |
|---|---|
| public static void writeIntList(IonWriter writer, short[] values) throws IOException writes an IonList with a series of IonInt values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |
| writeIntList | back to summary |
|---|---|
| public static void writeIntList(IonWriter writer, int[] values) throws IOException writes an IonList with a series of IonInt values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |
| writeIntList | back to summary |
|---|---|
| public static void writeIntList(IonWriter writer, long[] values) throws IOException writes an IonList with a series of IonInt values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |
| writeStringList | back to summary |
|---|---|
| public static void writeStringList(IonWriter writer, String[] values) throws IOException writes an IonList with a series of IonString values. This starts a List, writes the values (without any annoations) and closes the list. For text and tree writers this is just a convienience, but for the binary writer it can be optimized internally.
| |