|
||||||||||||
| 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.talika.tarsis.filters.gzip.GZIPServletOutputStream
ServletOutputStream wrapper that allows us to compress response.
| Constructor Summary | |
|---|---|
GZIPServletOutputStream(javax.servlet.ServletOutputStream out)
Creates an output stream adaptor wrapping the given output stream. |
|
GZIPServletOutputStream(javax.servlet.ServletOutputStream out,
int size)
Creates an output stream adaptor wrapping the given output stream and buffer size. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
write(byte[] data,
int off,
int len)
Writes len bytes from the specified byte array starting at offset
off to this output stream. |
void |
write(int data)
Writes the specified byte to this output stream. |
| 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.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GZIPServletOutputStream(javax.servlet.ServletOutputStream out)
throws java.io.IOException
out - ServletOutputStream output stream to be wrapped.
java.io.IOException - if an input or output exception occurs.
public GZIPServletOutputStream(javax.servlet.ServletOutputStream out,
int size)
throws java.io.IOException
out - ServletOutputStream output stream to be wrapped.size - int buffer size.
java.io.IOException - if an input or output exception occurs.| Method Detail |
public void write(byte[] data,
int off,
int len)
throws java.io.IOException
len bytes from the specified byte array starting at offset
off to this output stream.
data - byte[] the data.off - int the start offset in the data.len - int the number of bytes to write.
java.io.IOException - if an input or output exception occurs.
public void write(int data)
throws java.io.IOException
data - int the byte.
java.io.IOException - if an input or output exception occurs.
public void close()
throws java.io.IOException
java.io.IOException - if an input or output exception occurs.
public void flush()
throws java.io.IOException
java.io.IOException - if an input or output exception occurs.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||