public static class GzipFilter.GzipStream extends ServletOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream2 |
_bOut |
protected int |
_bufferSize |
protected boolean |
_closed |
protected long |
_contentLength |
protected GZIPOutputStream |
_gzOut |
protected int |
_minGzipSize |
protected OutputStream |
_out |
protected HttpServletRequest |
_request |
protected HttpServletResponse |
_response |
| Constructor and Description |
|---|
GzipStream(HttpServletRequest request,
HttpServletResponse response,
long contentLength,
int bufferSize,
int minGzipSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
doGzip() |
void |
doNotGzip() |
void |
finish() |
void |
flush() |
void |
resetBuffer() |
protected boolean |
setContentEncodingGzip() |
void |
setContentLength(long length) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected HttpServletRequest _request
protected HttpServletResponse _response
protected OutputStream _out
protected ByteArrayOutputStream2 _bOut
protected GZIPOutputStream _gzOut
protected boolean _closed
protected int _bufferSize
protected int _minGzipSize
protected long _contentLength
public GzipStream(HttpServletRequest request, HttpServletResponse response, long contentLength, int bufferSize, int minGzipSize) throws IOException
IOExceptionpublic void resetBuffer()
public void setContentLength(long length)
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void finish()
throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionprotected boolean setContentEncodingGzip()
public void doGzip()
throws IOException
IOExceptionpublic void doNotGzip()
throws IOException
IOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.