Class RecordFactory.RecordReader

java.lang.Object
com.cedarsoftware.io.factory.RecordFactory.RecordReader
All Implemented Interfaces:
JsonClassReader
Enclosing class:
RecordFactory

public static class RecordFactory.RecordReader extends Object implements JsonClassReader
  • Constructor Details

    • RecordReader

      public RecordReader()
  • Method Details

    • read

      public Object read(Object o, Resolver resolver)
      Description copied from interface: JsonClassReader
      Read a custom object from JSON. Only process the non-structural values for any given reader, and push the structural elements (non-primitive fields) onto the resolver's stack to be processed. This allows them to be processed by a standard processor (array, Map, Collection) or another custom factory or reader that handles the "next level." You can handle sub-objects here if needed.
      Specified by:
      read in interface JsonClassReader
      Parameters:
      o - Object being read. Could be a fundamental JSON type (String, long, boolean, double, null) or a JsonObject containing the parsed JSON structure.
      resolver - Provides access to push non-primitive items onto the stack for further processing, as well as access to ReadOptions, Converter, and reference tracking.
      Returns:
      Java Object that you filled out with values from the passed in jsonObj.