Class QueryResponse


  • public class QueryResponse
    extends java.lang.Object
    Query response from the ExoneraTor database.
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryResponse()
      Constructor for Gson.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static QueryResponse fromJson​(java.io.Reader reader)
      Return QueryResponse parsed from the given input stream, or null if something fails or an unrecognized version is found.
      static java.lang.String toJson​(QueryResponse response)
      Return JSON string for given QueryResponse.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryResponse

        public QueryResponse()
        Constructor for Gson.
    • Method Detail

      • toJson

        public static java.lang.String toJson​(QueryResponse response)
                                       throws java.io.IOException
        Return JSON string for given QueryResponse.
        Throws:
        java.io.IOException
      • fromJson

        public static QueryResponse fromJson​(java.io.Reader reader)
        Return QueryResponse parsed from the given input stream, or null if something fails or an unrecognized version is found.