Class JsonWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonWriter​(java.io.Writer writer)
      Creates a new json writer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(SearchResponse result)
      Writes the supplied search result to the writer.
      • Methods inherited from class java.lang.Object

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

      • JsonWriter

        public JsonWriter​(java.io.Writer writer)
        Creates a new json writer.
        Parameters:
        writer - to write JSON to
    • Method Detail

      • write

        public void write​(SearchResponse result)
                   throws java.io.IOException
        Writes the supplied search result to the writer.
        Specified by:
        write in interface SearchResultWriter
        Parameters:
        result - search result to write
        Throws:
        java.io.IOException - if an error occurs using the writer