|
||||||||||
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.meshcms.core.CacheResponseStream
Writes the page to both the browser and the cache.
CacheResponseWrapper
Constructor Summary | |
CacheResponseStream(javax.servlet.http.HttpServletResponse response,
java.io.OutputStream cacheOutput)
Creates a new Stream to write to the original output stream of the response and to the passed output stream. |
Method Summary | |
void |
close()
Closes both streams. |
void |
flush()
Flushes both streams. |
void |
write(int b)
Writes to both streams. |
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, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheResponseStream(javax.servlet.http.HttpServletResponse response, java.io.OutputStream cacheOutput) throws java.io.IOException
response
- the original responsecacheOutput
- the output for the cache
java.io.IOException
- if an input or output exception occurredMethod Detail |
public void write(int b) throws java.io.IOException
b
- the byte to write
java.io.IOException
- if an I/O error occurspublic void flush() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |