Package org.apache.commons.io.input
Class UncheckedBufferedReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
org.apache.commons.io.input.UncheckedBufferedReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
A
BufferedReader
that throws UncheckedIOException
instead of IOException
.
To build an instance, use UncheckedBufferedReader.Builder
.
- Since:
- 2.12.0
- See Also:
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newUncheckedBufferedReader.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
.readLine()
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.BufferedReader
lines, markSupported
-
Method Details
-
builder
Constructs a newUncheckedBufferedReader.Builder
.- Returns:
- a new
UncheckedBufferedReader.Builder
.
-
close
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classBufferedReader
- Throws:
UncheckedIOException
-
mark
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
mark
in classBufferedReader
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
read
in classBufferedReader
- 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 classBufferedReader
- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
read
in interfaceReadable
- Overrides:
read
in classReader
- Throws:
UncheckedIOException
-
readLine
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
readLine
in classBufferedReader
- Throws:
UncheckedIOException
-
ready
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
ready
in classBufferedReader
- Throws:
UncheckedIOException
-
reset
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
reset
in classBufferedReader
- Throws:
UncheckedIOException
-
skip
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
skip
in classBufferedReader
- Throws:
UncheckedIOException
-