public class LazyRequestInputStream
extends javax.servlet.ServletInputStream
ServletInputStream data in a request,
this avoids issues with attempting to read data which was is later requested from the reader since
it will not actually do any reads using the ServletInputStream but still can pretend to| Modifier and Type | Field and Description |
|---|---|
javax.servlet.http.HttpServletRequest |
request |
javax.servlet.ServletInputStream |
stream |
| Constructor and Description |
|---|
LazyRequestInputStream(javax.servlet.http.HttpServletRequest request)
Construct a new lazy inputstream from the given request
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
readLine(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
public javax.servlet.ServletInputStream stream
public javax.servlet.http.HttpServletRequest request
public LazyRequestInputStream(javax.servlet.http.HttpServletRequest request)
request - any http request, cannot be nullpublic int readLine(byte[] b,
int off,
int len)
throws IOException
readLine in class javax.servlet.ServletInputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2003–2020 Sakai Project. All rights reserved.