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 java.lang.String |
applyRegExp(java.lang.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).
|
boolean |
isReady() |
void |
setWriteListener(WriteListener writeListener) |
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 java.io.IOException
GZIPResponseWrapper).java.io.IOExceptionprotected boolean filterOutput()
public void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String applyRegExp(java.lang.StringBuilder complete)
public boolean closed()
close()).public void write(int b)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionpublic boolean isReady()
public void setWriteListener(WriteListener writeListener)
Copyright © 2018 SAP SE. All Rights Reserved.