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:
 java.io.Closeable,java.lang.AutoCloseable,java.lang.Readable
public final class UncheckedBufferedReader extends java.io.BufferedReaderABufferedReaderthat throwsUncheckedIOExceptioninstead ofIOException.To build an instance, use
UncheckedBufferedReader.Builder.- Since:
 - 2.12.0
 - See Also:
 UncheckedBufferedReader.Builder,BufferedReader,IOException,UncheckedIOException
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUncheckedBufferedReader.BuilderBuilds a newUncheckedBufferedReader. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UncheckedBufferedReader.Builderbuilder()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(java.nio.CharBuffer target)Calls this method's super and rethrowIOExceptionasUncheckedIOException.java.lang.StringreadLine()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. 
 - 
 
- 
- 
Method Detail
- 
builder
public static UncheckedBufferedReader.Builder builder()
Constructs a newUncheckedBufferedReader.Builder.- Returns:
 - a new 
UncheckedBufferedReader.Builder. 
 
- 
close
public void close() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein interfacejava.io.Closeable- Overrides:
 closein classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
mark
public void mark(int readAheadLimit) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 markin classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
read
public int read() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 readin classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
read
public int read(char[] cbuf) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 readin classjava.io.Reader- Throws:
 java.io.UncheckedIOException
 
- 
read
public int read(char[] cbuf, int off, int len) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 readin classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
read
public int read(java.nio.CharBuffer target) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
 readin interfacejava.lang.Readable- Overrides:
 readin classjava.io.Reader- Throws:
 java.io.UncheckedIOException
 
- 
readLine
public java.lang.String readLine() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 readLinein classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
ready
public boolean ready() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 readyin classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
reset
public void reset() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 resetin classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
- 
skip
public long skip(long n) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
 skipin classjava.io.BufferedReader- Throws:
 java.io.UncheckedIOException
 
 - 
 
 -