public final class UncheckedFilterInputStream
extends java.io.FilterInputStream
BufferedReader
that throws UncheckedIOException
instead of IOException
.
To build an instance, see UncheckedFilterInputStream.Builder
.
BufferedReader
,
IOException
,
UncheckedIOException
Modifier and Type | Class and Description |
---|---|
static class |
UncheckedFilterInputStream.Builder
Builds a new
UncheckedFilterInputStream instance. |
Modifier | Constructor and Description |
---|---|
private |
UncheckedFilterInputStream(java.io.InputStream inputStream)
Constructs a
UncheckedFilterInputStream . |
Modifier and Type | Method and Description |
---|---|
int |
available()
Calls this method's super and rethrow
IOException as UncheckedIOException . |
static UncheckedFilterInputStream.Builder |
builder()
Constructs a new
UncheckedFilterInputStream.Builder . |
void |
close()
Calls this method's super and rethrow
IOException as UncheckedIOException . |
int |
read()
Calls this method's super and rethrow
IOException as UncheckedIOException . |
int |
read(byte[] b)
Calls this method's super and rethrow
IOException as UncheckedIOException . |
int |
read(byte[] b,
int off,
int len)
Calls this method's super and rethrow
IOException as UncheckedIOException . |
void |
reset()
Calls this method's super and rethrow
IOException as UncheckedIOException . |
long |
skip(long n)
Calls this method's super and rethrow
IOException as UncheckedIOException . |
private UncheckedFilterInputStream(java.io.InputStream inputStream)
UncheckedFilterInputStream
.inputStream
- the underlying input stream, or null
if this instance is to be created without an
underlying stream.public static UncheckedFilterInputStream.Builder builder()
UncheckedFilterInputStream.Builder
.UncheckedFilterInputStream.Builder
.public int available() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.available
in class java.io.FilterInputStream
java.io.UncheckedIOException
public void close() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterInputStream
java.io.UncheckedIOException
public int read() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.FilterInputStream
java.io.UncheckedIOException
public int read(byte[] b) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.FilterInputStream
java.io.UncheckedIOException
public int read(byte[] b, int off, int len) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.FilterInputStream
java.io.UncheckedIOException
public void reset() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.reset
in class java.io.FilterInputStream
java.io.UncheckedIOException
public long skip(long n) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.skip
in class java.io.FilterInputStream
java.io.UncheckedIOException