public final class JsonXIOUtil
extends java.lang.Object
JsonXOutput.| Constructor and Description |
|---|
JsonXIOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
mergeFrom(byte[] data,
int offset,
int len,
T message,
Schema<T> schema) |
static <T> void |
mergeFrom(byte[] data,
int offset,
int len,
T message,
Schema<T> schema,
boolean allowQuotedInt64,
char[] cbuf,
int coffset,
int clen,
boolean charBufAsLimit) |
static <T> void |
mergeFrom(byte[] data,
int offset,
int len,
T message,
Schema<T> schema,
int charBufSize,
boolean charBufAsLimit) |
static <T> void |
mergeFrom(byte[] data,
T message,
Schema<T> schema) |
static Pipe |
newPipe(byte[] data)
Creates a json pipe from a byte array.
|
static Pipe |
newPipe(byte[] data,
int offset,
int len)
Creates a json pipe from a byte array.
|
static Pipe |
newPipe(byte[] data,
int offset,
int len,
boolean allowQuotedInt64,
char[] cbuf,
int coffset,
int clen,
boolean charBufAsLimit)
Creates a json pipe from a byte array.
|
static Pipe |
newPipe(byte[] data,
int offset,
int len,
int charBufSize,
boolean charBufAsLimit)
Creates a json pipe from a byte array.
|
static <T> java.util.List<T> |
parseListFrom(byte[] data,
int offset,
int len,
Schema<T> schema)
Parses the
messages from the parser using the given schema. |
static <T> java.util.List<T> |
parseListFrom(byte[] data,
int offset,
int len,
Schema<T> schema,
boolean allowQuotedInt64,
char[] cbuf,
int coffset,
int clen,
boolean charBufAsLimit)
Parses the
messages from the parser using the given schema. |
static <T> java.util.List<T> |
parseListFrom(byte[] data,
int offset,
int len,
Schema<T> schema,
int charBufSize,
boolean charBufAsLimit)
Parses the
messages from the parser using the given schema. |
static <T> java.util.List<T> |
parseListFrom(byte[] data,
Schema<T> schema)
Parses the
messages from the parser using the given schema. |
static <T> byte[] |
toByteArray(T message,
Schema<T> schema,
boolean numeric,
LinkedBuffer buffer) |
static <T> byte[] |
toByteArray(T message,
Schema<T> schema,
int flags,
LinkedBuffer buffer) |
static <T> void |
writeListTo(LinkedBuffer buffer,
java.util.List<T> messages,
Schema<T> schema,
boolean numeric)
Serializes the
messages into the LinkedBuffer using the given schema. |
static <T> void |
writeListTo(LinkedBuffer buffer,
java.util.List<T> messages,
Schema<T> schema,
int flags)
Serializes the
messages into the LinkedBuffer using the given schema. |
static <T> void |
writeListTo(java.io.OutputStream out,
java.util.List<T> messages,
Schema<T> schema,
boolean numeric,
LinkedBuffer buffer)
Serializes the
messages into the stream using the given schema with the
supplied buffer. |
static <T> void |
writeListTo(java.io.OutputStream out,
java.util.List<T> messages,
Schema<T> schema,
int flags,
LinkedBuffer buffer)
Serializes the
messages into the stream using the given schema with the
supplied buffer. |
static <T> void |
writeTo(LinkedBuffer buffer,
T message,
Schema<T> schema,
boolean numeric)
Serializes the
message into a LinkedBuffer via JsonXOutput
using the given schema with the supplied buffer. |
static <T> void |
writeTo(LinkedBuffer buffer,
T message,
Schema<T> schema,
int flags)
Serializes the
message into a LinkedBuffer via JsonXOutput
using the given schema with the supplied buffer. |
static <T extends Message<T>> |
writeTo(java.io.OutputStream out,
T message,
boolean numeric,
LinkedBuffer buffer)
|
static <T> void |
writeTo(java.io.OutputStream out,
T message,
Schema<T> schema,
boolean numeric,
LinkedBuffer buffer)
|
static <T> void |
writeTo(java.io.OutputStream out,
T message,
Schema<T> schema,
int flags,
LinkedBuffer buffer)
|
public static <T> byte[] toByteArray(T message,
Schema<T> schema,
boolean numeric,
LinkedBuffer buffer)
public static <T> byte[] toByteArray(T message,
Schema<T> schema,
int flags,
LinkedBuffer buffer)
public static <T> void writeTo(LinkedBuffer buffer, T message, Schema<T> schema, boolean numeric)
message into a LinkedBuffer via JsonXOutput
using the given schema with the supplied buffer.public static <T> void writeTo(LinkedBuffer buffer, T message, Schema<T> schema, int flags)
message into a LinkedBuffer via JsonXOutput
using the given schema with the supplied buffer.public static <T extends Message<T>> void writeTo(java.io.OutputStream out, T message, boolean numeric, LinkedBuffer buffer) throws java.io.IOException
java.io.IOExceptionpublic static <T> void writeTo(java.io.OutputStream out,
T message,
Schema<T> schema,
boolean numeric,
LinkedBuffer buffer)
throws java.io.IOException
java.io.IOExceptionpublic static <T> void writeTo(java.io.OutputStream out,
T message,
Schema<T> schema,
int flags,
LinkedBuffer buffer)
throws java.io.IOException
java.io.IOExceptionpublic static <T> void writeListTo(LinkedBuffer buffer, java.util.List<T> messages, Schema<T> schema, boolean numeric)
messages into the LinkedBuffer using the given schema.public static <T> void writeListTo(LinkedBuffer buffer, java.util.List<T> messages, Schema<T> schema, int flags)
messages into the LinkedBuffer using the given schema.public static <T> void writeListTo(java.io.OutputStream out,
java.util.List<T> messages,
Schema<T> schema,
boolean numeric,
LinkedBuffer buffer)
throws java.io.IOException
messages into the stream using the given schema with the
supplied buffer.java.io.IOExceptionpublic static <T> void writeListTo(java.io.OutputStream out,
java.util.List<T> messages,
Schema<T> schema,
int flags,
LinkedBuffer buffer)
throws java.io.IOException
messages into the stream using the given schema with the
supplied buffer.java.io.IOExceptionpublic static <T> java.util.List<T> parseListFrom(byte[] data,
Schema<T> schema)
throws java.io.IOException
messages from the parser using the given schema.java.io.IOExceptionpublic static <T> java.util.List<T> parseListFrom(byte[] data,
int offset,
int len,
Schema<T> schema)
throws java.io.IOException
messages from the parser using the given schema.java.io.IOExceptionpublic static <T> java.util.List<T> parseListFrom(byte[] data,
int offset,
int len,
Schema<T> schema,
int charBufSize,
boolean charBufAsLimit)
throws java.io.IOException
messages from the parser using the given schema.java.io.IOExceptionpublic static <T> java.util.List<T> parseListFrom(byte[] data,
int offset,
int len,
Schema<T> schema,
boolean allowQuotedInt64,
char[] cbuf,
int coffset,
int clen,
boolean charBufAsLimit)
throws java.io.IOException
messages from the parser using the given schema.java.io.IOExceptionpublic static <T> void mergeFrom(byte[] data,
T message,
Schema<T> schema)
throws java.io.IOException
java.io.IOExceptionpublic static <T> void mergeFrom(byte[] data,
int offset,
int len,
T message,
Schema<T> schema)
throws java.io.IOException
java.io.IOExceptionpublic static <T> void mergeFrom(byte[] data,
int offset,
int len,
T message,
Schema<T> schema,
int charBufSize,
boolean charBufAsLimit)
throws java.io.IOException
java.io.IOExceptionpublic static <T> void mergeFrom(byte[] data,
int offset,
int len,
T message,
Schema<T> schema,
boolean allowQuotedInt64,
char[] cbuf,
int coffset,
int clen,
boolean charBufAsLimit)
throws java.io.IOException
java.io.IOExceptionpublic static Pipe newPipe(byte[] data) throws java.io.IOException
java.io.IOExceptionpublic static Pipe newPipe(byte[] data, int offset, int len) throws java.io.IOException
java.io.IOExceptionpublic static Pipe newPipe(byte[] data, int offset, int len, int charBufSize, boolean charBufAsLimit) throws java.io.IOException
java.io.IOExceptionpublic static Pipe newPipe(byte[] data, int offset, int len, boolean allowQuotedInt64, char[] cbuf, int coffset, int clen, boolean charBufAsLimit) throws java.io.IOException
java.io.IOExceptionCopyright © 2009-2023. All Rights Reserved.