Class BufferedGZipOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.apache.tapestry5.http.internal.gzip.BufferedGZipOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A buffered output stream that, when a certain number of bytes is buffered (the cutover point) will open a compressed
stream (via
Response.getOutputStream(String)-
Constructor Summary
ConstructorsConstructorDescriptionBufferedGZipOutputStream(String contentType, javax.servlet.http.HttpServletResponse response, int cutover, CompressionAnalyzer analyzer) -
Method Summary
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
BufferedGZipOutputStream
public BufferedGZipOutputStream(String contentType, javax.servlet.http.HttpServletResponse response, int cutover, CompressionAnalyzer analyzer)
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-