Package org.apache.commons.io.input
Class UncheckedFilterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.UncheckedFilterInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class UncheckedFilterInputStream extends java.io.FilterInputStream
ABufferedReader
that throwsUncheckedIOException
instead ofIOException
.To build an instance, see
UncheckedFilterInputStream.Builder
.- Since:
- 2.12.0
- See Also:
BufferedReader
,IOException
,UncheckedIOException
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UncheckedFilterInputStream.Builder
Builds a newUncheckedFilterInputStream
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
Calls this method's super and rethrowIOException
asUncheckedIOException
.static UncheckedFilterInputStream.Builder
builder()
Constructs a newUncheckedFilterInputStream.Builder
.void
close()
Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read()
Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read(byte[] b)
Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read(byte[] b, int off, int len)
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
reset()
Calls this method's super and rethrowIOException
asUncheckedIOException
.long
skip(long n)
Calls this method's super and rethrowIOException
asUncheckedIOException
.
-
-
-
Method Detail
-
builder
public static UncheckedFilterInputStream.Builder builder()
Constructs a newUncheckedFilterInputStream.Builder
.- Returns:
- a new
UncheckedFilterInputStream.Builder
.
-
available
public int available() throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
available
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
close
public void close() throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
read
public int read() throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
read
public int read(byte[] b) throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
read
public int read(byte[] b, int off, int len) throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
reset
public void reset() throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
reset
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
skip
public long skip(long n) throws java.io.UncheckedIOException
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
skip
in classjava.io.FilterInputStream
- Throws:
java.io.UncheckedIOException
-
-