public class GZIPResponseStream
extends ServletOutputStream
GZIPResponseWrapper).| Constructor and Description |
|---|
GZIPResponseStream(HttpServletResponse response,
boolean captureText)
Creates a new GZIPOutputStream which is an implementation of a ServletOutputStream which uses a GZIPOutputStream to provide
gzip compression for a HttpServletResponse (see
GZIPResponseWrapper). |
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyRegExp(StringBuilder complete) |
void |
close()
Closes this stream (which implies finishing the underlying GZIPOutputStream, adding correct response headers and
flushing/closing the outputstream).
|
boolean |
closed()
Returns true if this stream has been closed (using
close()). |
protected boolean |
filterOutput() |
void |
flush()
Flushes this stream (and thus flushes the underlying GZIPOutputStream).
|
void |
write(byte[] b)
Writes the given byte array to this stream (and thus to the underlying GZIPOutputStream).
|
void |
write(byte[] b,
int off,
int len)
Writes the given byte array to this stream (and thus to the underlying GZIPOutputStream).
|
void |
write(int b)
Writes the given byte to this stream (and thus to the underlying GZIPOutputStream).
|
public GZIPResponseStream(HttpServletResponse response,
boolean captureText)
throws IOException
GZIPResponseWrapper).IOExceptionprotected boolean filterOutput()
public void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionprotected String applyRegExp(StringBuilder complete)
public boolean closed()
close()).public void write(int b)
throws IOException
IOExceptionpublic void write(byte[] b)
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
IOExceptionCopyright © 2017 SAP SE. All Rights Reserved.