Package sonia.scm.filter
Class GZipResponseStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
sonia.scm.filter.GZipResponseStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class GZipResponseStream
extends jakarta.servlet.ServletOutputStream
Response stream for gzip encoding.
- Since:
- 1.15
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayOutputStreamprotected booleanprotected GZIPOutputStreamprotected jakarta.servlet.ServletOutputStreamprotected jakarta.servlet.http.HttpServletResponse -
Constructor Summary
ConstructorsConstructorDescriptionGZipResponseStream(jakarta.servlet.http.HttpServletResponse response) GZipResponseStream(jakarta.servlet.http.HttpServletResponse response, GZipFilterConfig config) -
Method Summary
Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
baos
-
gzipstream
-
closed
protected boolean closed -
output
protected jakarta.servlet.ServletOutputStream output -
response
protected jakarta.servlet.http.HttpServletResponse response
-
-
Constructor Details
-
GZipResponseStream
- Throws:
IOException
-
GZipResponseStream
public GZipResponseStream(jakarta.servlet.http.HttpServletResponse response, GZipFilterConfig config) throws IOException - Throws:
IOException- Since:
- 1.16
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
reset
public void reset() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
isClosed
public boolean isClosed() -
isReady
public boolean isReady()- Specified by:
isReadyin classjakarta.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener writeListener) - Specified by:
setWriteListenerin classjakarta.servlet.ServletOutputStream
-