public final class InputStreamWrapper extends InputStream
| Constructor and Description |
|---|
InputStreamWrapper(InputStream inputStream)
Create new object.
|
InputStreamWrapper(InputStream inputStream,
OutputStream logOutputStream)
Create new object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int length) |
long |
skip(long count) |
mark, resetpublic InputStreamWrapper(InputStream inputStream)
inputStream - stream to read the user input.public InputStreamWrapper(InputStream inputStream, OutputStream logOutputStream)
inputStream - stream to read the user input.logOutputStream - stream to log the user input.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long count)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2019. All rights reserved.