|
SunONE Application Server v8.0 PE | |||||||||
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 com.sun.appserv.web.cache.filter.CachingOutputStreamWrapper
an output stream wrapper to cache response bytes
Constructor Summary | |
CachingOutputStreamWrapper()
|
Method Summary | |
void |
close()
Close this output stream, causing any buffered data to be flushed and any further output data to throw an IOException. |
void |
flush()
Flush any buffered data for this output stream, which also causes the response to be committed. |
byte[] |
getBytes()
return the cached bytes |
void |
write(byte[] b)
Write b.length bytes from the specified byte array
to our output stream. |
void |
write(byte[] b,
int off,
int len)
Write len bytes from the specified byte array, starting
at the specified offset, to our output stream. |
void |
write(int b)
Write the specified byte to our 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 |
Constructor Detail |
public CachingOutputStreamWrapper()
Method Detail |
public void write(int b) throws java.io.IOException
b
- The byte to be written
java.io.IOException
- if an input/output error occurspublic void write(byte[] b) throws java.io.IOException
b.length
bytes from the specified byte array
to our output stream.
b
- The byte array to be written
java.io.IOException
- if an input/output error occurspublic void write(byte[] b, int off, int len) throws java.io.IOException
len
bytes from the specified byte array, starting
at the specified offset, to our output stream.
b
- The byte array containing the bytes to be writtenoff
- Zero-relative starting offset of the bytes to be writtenlen
- The number of bytes to be written
java.io.IOException
- if an input/output error occurspublic void flush() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public byte[] getBytes()
|
SunONE Application Server v8.0 PE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.