|
deegree 2.4 (2010/11/11 10:47 build-27-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
javax.servlet.ServletOutputStream
org.deegree.enterprise.servlet.GZIPResponseStream
public class GZIPResponseStream
Field Summary | |
---|---|
protected ByteArrayOutputStream |
baos
the output as a byte array |
protected boolean |
closed
true if the stream is closed |
protected GZIPOutputStream |
gzipstream
the output as a gzipped stream |
protected javax.servlet.ServletOutputStream |
output
the output as a stream |
protected javax.servlet.http.HttpServletResponse |
response
the response wrapper |
Constructor Summary | |
---|---|
GZIPResponseStream(javax.servlet.http.HttpServletResponse response)
|
Method Summary | |
---|---|
void |
close()
|
boolean |
closed()
|
void |
flush()
|
void |
reset()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
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.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ByteArrayOutputStream baos
protected GZIPOutputStream gzipstream
protected boolean closed
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.ServletOutputStream output
Constructor Detail |
---|
public GZIPResponseStream(javax.servlet.http.HttpServletResponse response) throws IOException
response
-
IOException
Method Detail |
---|
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
b
- data to write
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
b
- data array to write
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- data array to writeoff
- index of the for bytelen
- number of bytes to write
IOException
public boolean closed()
public void reset()
|
deegree 2.4 (2010/11/11 10:47 build-27-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org