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
Nested Classes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newUncheckedBufferedReader.Builder.voidclose()Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidmark(int readAheadLimit) Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread()Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread(char[] cbuf) Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread(char[] cbuf, int off, int len) Calls this method's super and rethrowIOExceptionasUncheckedIOException.intread(CharBuffer target) Calls this method's super and rethrowIOExceptionasUncheckedIOException.readLine()Calls this method's super and rethrowIOExceptionasUncheckedIOException.booleanready()Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidreset()Calls this method's super and rethrowIOExceptionasUncheckedIOException.longskip(long n) Calls this method's super and rethrowIOExceptionasUncheckedIOException.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 rethrowIOExceptionasUncheckedIOException.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classBufferedReader- Throws:
UncheckedIOException
-
mark
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
markin classBufferedReader- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readin classBufferedReader- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readin classReader- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readin classBufferedReader- Throws:
UncheckedIOException
-
read
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
readin interfaceReadable- Overrides:
readin classReader- Throws:
UncheckedIOException
-
readLine
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readLinein classBufferedReader- Throws:
UncheckedIOException
-
ready
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
readyin classBufferedReader- Throws:
UncheckedIOException
-
reset
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
resetin classBufferedReader- Throws:
UncheckedIOException
-
skip
Calls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
skipin classBufferedReader- Throws:
UncheckedIOException
-