public class ServletOutputStreamWrapper extends javax.servlet.ServletOutputStream implements Wrapper<ServletOutputStream>, Recyclable
| 构造器和说明 |
|---|
ServletOutputStreamWrapper(io.netty.channel.ChannelFutureListener closeListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
flush() |
boolean |
isReady() |
boolean |
isSuspendFlag()
Whether to pause the operation output stream
|
<T> void |
recycle(Consumer<T> consumer)
async recycle
|
void |
resetBuffer() |
void |
setSuspendFlag(boolean suspendFlag)
Set (on/off) to pause the output operation
|
void |
setWriteListener(javax.servlet.WriteListener listener) |
ServletOutputStream |
unwrap()
get source object
|
void |
wrap(ServletOutputStream source)
wrap
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnrecyclepublic ServletOutputStreamWrapper(io.netty.channel.ChannelFutureListener closeListener)
public void setSuspendFlag(boolean suspendFlag)
suspendFlag - True = pause, false= resumepublic boolean isSuspendFlag()
public boolean isReady()
isReady 在类中 javax.servlet.ServletOutputStreampublic void setWriteListener(javax.servlet.WriteListener listener)
setWriteListener 在类中 javax.servlet.ServletOutputStreampublic void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 OutputStreamIOExceptionpublic void resetBuffer()
public void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void wrap(ServletOutputStream source)
Wrapperwrap 在接口中 Wrapper<ServletOutputStream>source - source objectpublic ServletOutputStream unwrap()
Wrapperunwrap 在接口中 Wrapper<ServletOutputStream>public <T> void recycle(Consumer<T> consumer)
Recyclablerecycle 在接口中 RecyclableT - last recycle objectconsumer - callbackCopyright © 2020. All rights reserved.