Class TextQueryResponseWriter.NonFlushingStream

java.lang.Object
java.io.OutputStream
org.apache.solr.response.TextQueryResponseWriter.NonFlushingStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing interface:
TextQueryResponseWriter

public static class TextQueryResponseWriter.NonFlushingStream extends OutputStream
Delegates write methods to an underlying OutputStream, but does not delegate OutputStream.flush(), (nor OutputStream.close()). This allows code writing to this stream to flush internal buffers without flushing the response. If we were to flush the response early, that would trigger chunked encoding.

See SOLR-8669.