Package com.helger.servlet.response.gzip
Class GZIPResponse.GZIPServletOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- jakarta.servlet.ServletOutputStream
-
- com.helger.servlet.io.AbstractServletOutputStream
-
- com.helger.servlet.response.gzip.AbstractCompressedServletOutputStream
-
- com.helger.servlet.response.gzip.GZIPResponse.GZIPServletOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- GZIPResponse
public static class GZIPResponse.GZIPServletOutputStream extends AbstractCompressedServletOutputStream
-
-
Constructor Summary
Constructors Constructor Description GZIPServletOutputStream(jakarta.servlet.http.HttpServletRequest aHttpRequest, jakarta.servlet.http.HttpServletResponse aHttpResponse, String sContentEncoding, long nContentLength, long nMinCompressSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DeflaterOutputStreamcreateDeflaterOutputStream(OutputStream aOS)-
Methods inherited from class com.helger.servlet.response.gzip.AbstractCompressedServletOutputStream
close, doCompress, doNotCompress, finishAndClose, flush, getOutputStream, isClosed, resetBuffer, setContentLength, write, write, write
-
Methods inherited from class com.helger.servlet.io.AbstractServletOutputStream
isReady, setWriteListener
-
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
-
-
-
-
Constructor Detail
-
GZIPServletOutputStream
public GZIPServletOutputStream(@Nonnull jakarta.servlet.http.HttpServletRequest aHttpRequest, @Nonnull jakarta.servlet.http.HttpServletResponse aHttpResponse, @Nonnull String sContentEncoding, long nContentLength, @Nonnegative long nMinCompressSize) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createDeflaterOutputStream
@Nonnull protected DeflaterOutputStream createDeflaterOutputStream(@Nonnull OutputStream aOS) throws IOException
- Specified by:
createDeflaterOutputStreamin classAbstractCompressedServletOutputStream- Throws:
IOException
-
-