Should the StreamingOutput
's OutputStream
be closed by the implementing class?
The java-doc does not give any recommendations. I guess it just delegates to the underlying ServletOutputStream
which means it should not be closed, but my guess might be wrong :) Also the javadoc makes a reference to the MessageBodyWriter
interface where it's explicitly said that the output stream must not be closed.
https://docs.oracle.com/javaee/7/api/javax/ws/rs/core/StreamingOutput.html