public final class UncheckedFilterInputStream extends 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. |
in
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 . |
mark, markSupported
public static UncheckedFilterInputStream.Builder builder()
UncheckedFilterInputStream.Builder
.UncheckedFilterInputStream.Builder
.public int available() throws UncheckedIOException
IOException
as UncheckedIOException
.available
in class FilterInputStream
UncheckedIOException
public void close() throws UncheckedIOException
IOException
as UncheckedIOException
.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
UncheckedIOException
public int read() throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class FilterInputStream
UncheckedIOException
public int read(byte[] b) throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class FilterInputStream
UncheckedIOException
public int read(byte[] b, int off, int len) throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class FilterInputStream
UncheckedIOException
public void reset() throws UncheckedIOException
IOException
as UncheckedIOException
.reset
in class FilterInputStream
UncheckedIOException
public long skip(long n) throws UncheckedIOException
IOException
as UncheckedIOException
.skip
in class FilterInputStream
UncheckedIOException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.