public class ServletInputStreamWrapper extends javax.servlet.ServletInputStream implements Wrapper<io.netty.buffer.ByteBuf>, Recyclable
| 构造器和说明 |
|---|
ServletInputStreamWrapper() |
ServletInputStreamWrapper(io.netty.buffer.ByteBuf source) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close() |
int |
getContentLength() |
javax.servlet.ReadListener |
getReadListener() |
boolean |
isClosed() |
boolean |
isFinished()
There is no new HttpContent input for this request, and all of the current content has been read
|
boolean |
isReady()
HttpContent has been read in at least once and not all of it has been read, or the HttpContent queue is not empty
|
int |
read()
Try updating current, then read a byte, and return, where int is returned, but third-party frameworks treat it as one byte instead of four
|
int |
read(byte[] bytes,
int off,
int len)
Try to update current, then read len bytes and copy to b (start with off subscript)
|
int |
readLine(byte[] b,
int off,
int len) |
void |
recycle()
recycle
|
void |
setReadListener(javax.servlet.ReadListener readListener) |
long |
skip(long n)
Skip n bytes
|
io.netty.buffer.ByteBuf |
unwrap()
get source object
|
void |
wrap(io.netty.buffer.ByteBuf source)
wrap
|
mark, markSupported, read, resetrecyclepublic ServletInputStreamWrapper()
public ServletInputStreamWrapper(io.netty.buffer.ByteBuf source)
public int getContentLength()
public int readLine(byte[] b,
int off,
int len)
throws IOException
readLine 在类中 javax.servlet.ServletInputStreamIOExceptionpublic boolean isFinished()
isFinished 在类中 javax.servlet.ServletInputStreampublic boolean isReady()
isReady 在类中 javax.servlet.ServletInputStreampublic void setReadListener(javax.servlet.ReadListener readListener)
setReadListener 在类中 javax.servlet.ServletInputStreampublic long skip(long n)
throws IOException
skip 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreampublic int read(byte[] bytes,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic boolean isClosed()
public javax.servlet.ReadListener getReadListener()
public void wrap(io.netty.buffer.ByteBuf source)
Wrapperpublic io.netty.buffer.ByteBuf unwrap()
Wrapperpublic void recycle()
Recyclablerecycle 在接口中 RecyclableCopyright © 2020. All rights reserved.