Class JsonReader

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonReader​(java.io.Reader reader)
      Creates a new json reader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SearchResponse read()
      Reads JSON data from the reader and returns a search result.
      • Methods inherited from class java.lang.Object

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

      • JsonReader

        public JsonReader​(java.io.Reader reader)
        Creates a new json reader.
        Parameters:
        reader - to read JSON from
    • Method Detail

      • read

        public SearchResponse read()
                            throws java.io.IOException
        Reads JSON data from the reader and returns a search result.
        Specified by:
        read in interface SearchResultReader
        Returns:
        search result derived from the JSON
        Throws:
        java.io.IOException - if an error occurs using the reader