public class LoggedInputStream
extends javax.servlet.ServletInputStream
| Constructor and Description |
|---|
LoggedInputStream(byte[] input)
Constructor taking original raw bytes to wrap.
|
LoggedInputStream(InputStream input)
Constructor taking original input stream to wrap.
|
| 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(byte[] input)
public LoggedInputStream(InputStream input) 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 © 2019 resurface.io. All rights reserved.