org.apache.solr.response

## Class QueryResponseWriterUtil

- java.lang.Object
- - org.apache.solr.response.QueryResponseWriterUtil

-     public final class QueryResponseWriterUtil
      extends Object

  Static utility methods relating to `QueryResponseWriter`s

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `writeQueryResponse(OutputStream outputStream, QueryResponseWriter responseWriter, SolrQueryRequest solrRequest, SolrQueryResponse solrResponse, String contentType)` Writes the response writer's result to the given output stream.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### writeQueryResponse

          public static void writeQueryResponse(OutputStream outputStream,
                                                QueryResponseWriter responseWriter,
                                                SolrQueryRequest solrRequest,
                                                SolrQueryResponse solrResponse,
                                                String contentType)
                                         throws IOException

      Writes the response writer's result to the given output stream. This method inspects the specified writer to determine if it is a `BinaryQueryResponseWriter` or not to delegate to the appropriate method.
      Throws:
        `IOException`
      See Also:
        `BinaryQueryResponseWriter.write(OutputStream,SolrQueryRequest,SolrQueryResponse)`, `QueryResponseWriter.write(Writer,SolrQueryRequest,SolrQueryResponse)`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.