Class ObjectReaderWithoutChecking

java.lang.Object
com.aquima.interactions.communication.data.serialization.json.ObjectReaderWithoutChecking

public class ObjectReaderWithoutChecking extends Object
Reads a Json string to a DataObject.

This implementation is immutable and therefore thread safe.

Since:
9.3
Author:
A.Pragt
  • Constructor Details

    • ObjectReaderWithoutChecking

      public ObjectReaderWithoutChecking()
  • Method Details

    • read

      public DataValue read(Reader source, DataValueType type) throws IOException
      Reads a string to a DataObject
      Parameters:
      source - The source data to parse, not null.
      type - The type description of the data to be deserialized, not null.
      Returns:
      The DataObject representing the data.
      Throws:
      RuntimeException - In case of a parse exception.
      IOException - In case of problems during data retrieval.
    • read

      public DataValue read(String json, DataValueType type)
      Reads a string to a DataObject
      Parameters:
      json - The json data to parse, not null.
      type - The type description of the data to be deserialized, not null.
      Returns:
      The DataObject representing the data.
      Throws:
      RuntimeException - In case of a parse exception.