public class LoggedInputStream
extends javax.servlet.ServletInputStream
| Constructor and Description |
|---|
LoggedInputStream(InputStream input)
Constructor taking original input stream to wrap.
|
LoggedInputStream(InputStream input,
int limit)
Constructor taking original input stream and limit in bytes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking.
|
void |
close()
Closes this input stream and releases any system resources associated with the stream.
|
byte[] |
logged()
Return raw data logged so far.
|
int |
read()
Reads the next byte of data from the input stream.
|
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes.
|
mark, markSupported, read, reset, skippublic LoggedInputStream(InputStream input) throws IOException
IOExceptionpublic LoggedInputStream(InputStream input, int limit) throws IOException
IOExceptionpublic int available()
available in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic byte[] logged()
public int read()
read in class InputStreampublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2020 resurface.io. All rights reserved.