Class FlexBuffers


  • public class FlexBuffers
    extends java.lang.Object
    This class can be used to parse FlexBuffer messages.

    For generating FlexBuffer messages, use FlexBuffersBuilder.

    Example of usage:

     ReadBuf bb = ... // load message from file or network
     FlexBuffers.Reference r = FlexBuffers.getRoot(bb); // Reads the root element
     FlexBuffers.Map map = r.asMap(); // We assumed root object is a map
     System.out.println(map.get("name").asString()); // prints element with key "name"