public class CacheResponseStream
extends javax.servlet.ServletOutputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected OutputStream |
cache |
protected boolean |
closed |
protected javax.servlet.ServletOutputStream |
output |
protected javax.servlet.http.HttpServletResponse |
response |
| 构造器和说明 |
|---|
CacheResponseStream(javax.servlet.http.HttpServletResponse response,
OutputStream cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
closed() |
void |
flush() |
void |
reset() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected boolean closed
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.ServletOutputStream output
protected OutputStream cache
public CacheResponseStream(javax.servlet.http.HttpServletResponse response,
OutputStream cache)
throws IOException
IOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 OutputStreamIOExceptionpublic void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionpublic boolean closed()
public void reset()
Copyright © 2014. All rights reserved.