FlatBufferUtils

public class FlatBufferUtils

Utility methods for Flatbuffer operations.

Public Constructors

Public Methods

static ByteBuffer
parseJson(String json, String schema)
Parses json into the given schema.

Inherited Methods

Public Constructors

public FlatBufferUtils ()

Public Methods

public static ByteBuffer parseJson (String json, String schema)

Parses json into the given schema.

Parameters
json The string to parse.
schema The flatbuffer schema.
Returns
  • The JSON flatbuffer root object as a ByteBuffer.
Throws
JSONException