|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
javax.servlet.ServletOutputStream
com.opensymphony.oscache.web.filter.SplitServletOutputStream
Extends the base ServletOutputStream
class so that
the stream can be captured as it gets written. This is achieved
by overriding the write()
methods and outputting
the data to two streams - the original stream and a secondary stream
that is designed to capture the written data.
Constructor Summary | |
SplitServletOutputStream(OutputStream captureStream,
OutputStream passThroughStream)
Constructs a split output stream that both captures and passes through the servlet response. |
Method Summary | |
void |
write(byte[] value)
Writes the incoming data to both the output streams. |
void |
write(byte[] b,
int off,
int len)
Writes the incoming data to both the output streams. |
void |
write(int value)
Writes the incoming data to both the output 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 |
close, flush |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SplitServletOutputStream(OutputStream captureStream, OutputStream passThroughStream)
captureStream
- The stream that will be used to capture the data.passThroughStream
- The pass-through ServletOutputStream
that will write the response to the client as originally intended.Method Detail |
public void write(int value) throws IOException
value
- The int data to write.
IOException
public void write(byte[] value) throws IOException
value
- The bytes to write to the streams.
IOException
public void write(byte[] b, int off, int len) throws IOException
b
- The bytes to write out to the streams.off
- The offset into the byte data where writing should begin.len
- The number of bytes to write.
IOException
|
OSCache Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |