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:
Closeable
,AutoCloseable
A
BufferedReader
that throws UncheckedIOException
instead of IOException
.
To build an instance, use UncheckedFilterInputStream.Builder
.
- Since:
- 2.12.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Method Summary
Modifier and TypeMethodDescriptionint
Calls this method's super and rethrowIOException
asUncheckedIOException
.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
.Methods inherited from class java.io.FilterInputStream
mark, markSupported
-
Method Details
-
builder
Constructs a newUncheckedFilterInputStream.Builder
.- Returns:
- a new
UncheckedFilterInputStream.Builder
.
-
available
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
available
in classFilterInputStream
- Throws:
UncheckedIOException
-
close
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classFilterInputStream
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classFilterInputStream
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classFilterInputStream
- Throws:
UncheckedIOException
-
reset
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
reset
in classFilterInputStream
- Throws:
UncheckedIOException
-
skip
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
skip
in classFilterInputStream
- Throws:
UncheckedIOException
-