Package org.apache.solr.response
Class TextQueryResponseWriter.NonFlushingStream
java.lang.Object
java.io.OutputStream
org.apache.solr.response.TextQueryResponseWriter.NonFlushingStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing interface:
TextQueryResponseWriter
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.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
NonFlushingStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-