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
IOException
public void resetBuffer()
public void setContentLength(long length)
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void finish() throws IOException
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
protected boolean setContentEncodingGzip()
public void doGzip() throws IOException
IOException
public void doNotGzip() throws IOException
IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.