public class ServletOutputStream extends javax.servlet.ServletOutputStream implements Recyclable
| 限定符和类型 | 类和说明 |
|---|---|
class |
ServletOutputStream.CloseListener
Closing the listening wrapper class (for data collection)
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
APPEND_CONTENT_TYPE |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
End response object
The following events indicate that the servlet has satisfied the request and the response object is about to close
The following events indicate that the servlet has satisfied the request and the response object is about to close:
■The service method of the servlet terminates.
|
void |
destroy()
Destroy yourself,
|
void |
flush() |
boolean |
isClosed()
Whether to shut down
|
boolean |
isReady() |
void |
lock()
lock buffer
|
static ServletOutputStream |
newInstance(ServletHttpExchange servletHttpExchange) |
<T> void |
recycle(Consumer<T> consumer)
async recycle
|
void |
setCloseListener(io.netty.channel.ChannelFutureListener closeListener) |
void |
setWriteListener(javax.servlet.WriteListener writeListener) |
void |
unlock()
Releases the lock on the buffer
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b)
Int.
|
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnrecyclepublic static final String APPEND_CONTENT_TYPE
public static ServletOutputStream newInstance(ServletHttpExchange servletHttpExchange)
public void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionpublic boolean isReady()
isReady 在类中 javax.servlet.ServletOutputStreampublic void setWriteListener(javax.servlet.WriteListener writeListener)
setWriteListener 在类中 javax.servlet.ServletOutputStreampublic void setCloseListener(io.netty.channel.ChannelFutureListener closeListener)
public void write(byte[] b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(int b)
throws IOException
write 在类中 OutputStreamb - byteIOException - IOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 OutputStreamIOExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreampublic void destroy()
public void lock()
public void unlock()
public boolean isClosed()
public <T> void recycle(Consumer<T> consumer)
Recyclablerecycle 在接口中 RecyclableT - last recycle objectconsumer - callbackCopyright © 2020. All rights reserved.