|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--javax.servlet.ServletOutputStream
|
+--javawebparts.filter.CompressionResStream
This class is used to do compression.
| Field Summary | |
private java.io.ByteArrayOutputStream |
ba
ByteArrayOutputStream ba. |
private java.lang.String |
compressionType
What type of compression we are doing. |
private java.util.zip.DeflaterOutputStream |
ops
Our output stream. |
private javax.servlet.ServletOutputStream |
out
ServletOutputStream out. |
private javax.servlet.http.HttpServletResponse |
resp
Reference to the response being serviced. |
| Fields inherited from class javax.servlet.ServletOutputStream |
|
| Constructor Summary | |
CompressionResStream(javax.servlet.http.HttpServletResponse inResponse,
java.lang.String ct)
Constructor. |
|
| Method Summary | |
void |
close()
Clean up. |
void |
flush()
Flush the output stream. |
void |
write(byte[] bytes)
Writes a byte array to the output stream. |
void |
write(byte[] bytes,
int o,
int leng)
Writes a byte array to the output stream. |
void |
write(int b)
Writes a single byte to the 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.io.ByteArrayOutputStream ba
private java.util.zip.DeflaterOutputStream ops
private javax.servlet.http.HttpServletResponse resp
private javax.servlet.ServletOutputStream out
private java.lang.String compressionType
| Constructor Detail |
public CompressionResStream(javax.servlet.http.HttpServletResponse inResponse,
java.lang.String ct)
throws java.io.IOException
inResponse - The HTTPServletResponse being services.ct - What type of compression to perform.
java.io.IOException - IOException.| Method Detail |
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - A single byte to write.
java.io.IOException - IOException.
public void close()
throws java.io.IOException
close in class java.io.OutputStreamjava.io.IOException - IOException.
public void write(byte[] bytes)
throws java.io.IOException
write in class java.io.OutputStreambytes - Byte array.
java.io.IOException - IOException.
public void write(byte[] bytes,
int o,
int leng)
throws java.io.IOException
write in class java.io.OutputStreambytes - Byte array.o - o.leng - Length.
java.io.IOException - IOEXception.
public void flush()
throws java.io.IOException
flush in class java.io.OutputStreamjava.io.IOException - IOException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||