|
deegree 2.5 (2011/06/29 09:44 build-8-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 java.io.ByteArrayOutputStream |
baos
the output as a byte array |
protected boolean |
closed
true if the stream is closed |
protected java.util.zip.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 java.io.ByteArrayOutputStream baos
protected java.util.zip.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 java.io.IOException
response -
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - data to write
java.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamb - data array to write
java.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - data array to writeoff - index of the for bytelen - number of bytes to write
java.io.IOExceptionpublic boolean closed()
public void reset()
|
deegree 2.5 (2011/06/29 09:44 build-8-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