public class ServletInputStreamWrapper extends javax.servlet.ServletInputStream implements Wrapper<io.netty.buffer.CompositeByteBuf>, Recyclable
| 构造器和说明 |
|---|
ServletInputStreamWrapper(Supplier<io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoder> requestDecoderSupplier,
Supplier<ResourceManager> resourceManagerSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close() |
long |
getContentLength() |
long |
getFileUploadTimeoutMs() |
javax.servlet.ReadListener |
getReadListener() |
String |
getUploadDir() |
int |
getUploadFileCount() |
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
|
void |
mark(int readlimit) |
boolean |
markSupported() |
void |
onMessage(io.netty.handler.codec.http.HttpContent httpContent) |
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 |
reset() |
void |
setContentLength(long contentLength) |
void |
setFileSizeThreshold(int fileSizeThreshold) |
void |
setFileUploadTimeoutMs(long fileUploadTimeoutMs) |
void |
setReadListener(javax.servlet.ReadListener readListener) |
void |
setUploadDir(String uploadDir) |
long |
skip(long n)
Skip n bytes
|
io.netty.buffer.CompositeByteBuf |
unwrap()
get source object
|
void |
wrap(io.netty.buffer.CompositeByteBuf source)
wrap
|
readrecyclepublic ServletInputStreamWrapper(Supplier<io.netty.handler.codec.http.multipart.InterfaceHttpPostRequestDecoder> requestDecoderSupplier, Supplier<ResourceManager> resourceManagerSupplier)
public void setUploadDir(String uploadDir)
public String getUploadDir()
public void setFileSizeThreshold(int fileSizeThreshold)
public long getContentLength()
public void onMessage(io.netty.handler.codec.http.HttpContent httpContent)
public boolean markSupported()
markSupported 在类中 InputStreampublic void mark(int readlimit)
mark 在类中 InputStreampublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic 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 readLine(byte[] b,
int off,
int len)
throws IOException
readLine 在类中 javax.servlet.ServletInputStreamIOExceptionpublic 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.CompositeByteBuf source)
Wrapperpublic void setContentLength(long contentLength)
public void setFileUploadTimeoutMs(long fileUploadTimeoutMs)
public long getFileUploadTimeoutMs()
public int getUploadFileCount()
public io.netty.buffer.CompositeByteBuf unwrap()
Wrapperpublic void recycle()
Recyclablerecycle 在接口中 RecyclableCopyright © 2021. All rights reserved.