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, println
Methods 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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-