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 ByteArrayOutputStream
protected boolean
protected GZIPOutputStream
protected jakarta.servlet.ServletOutputStream
protected 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, println
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
reset
public void reset() -
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
isClosed
public boolean isClosed() -
isReady
public boolean isReady()- Specified by:
isReady
in classjakarta.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener writeListener) - Specified by:
setWriteListener
in classjakarta.servlet.ServletOutputStream
-