Package org.apache.commons.io.input
Class UncheckedFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.commons.io.input.UncheckedFilterReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
A
FilterReader
that throws UncheckedIOException
instead of IOException
.
To build an instance, use UncheckedFilterReader.Builder
.
- Since:
- 2.12.0
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.io.FilterReader
in
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newUncheckedFilterReader.Builder
.void
close()
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
mark
(int readAheadLimit) Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read()
Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read
(char[] cbuf) Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read
(char[] cbuf, int off, int len) Calls this method's super and rethrowIOException
asUncheckedIOException
.int
read
(CharBuffer target) Calls this method's super and rethrowIOException
asUncheckedIOException
.boolean
ready()
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.FilterReader
markSupported
-
Method Details
-
builder
Constructs a newUncheckedFilterReader.Builder
.- Returns:
- a new
UncheckedFilterReader.Builder
.
-
close
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterReader
- Throws:
UncheckedIOException
-
mark
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
mark
in classFilterReader
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classFilterReader
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classReader
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classFilterReader
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
read
in interfaceReadable
- Overrides:
read
in classReader
- Throws:
UncheckedIOException
-
ready
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
ready
in classFilterReader
- Throws:
UncheckedIOException
-
reset
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
reset
in classFilterReader
- Throws:
UncheckedIOException
-
skip
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
skip
in classFilterReader
- Throws:
UncheckedIOException
-