public final class UncheckedBufferedReader extends BufferedReader
BufferedReader that throws UncheckedIOException instead of IOException.
To build an instance, see UncheckedBufferedReader.Builder.
BufferedReader,
IOException,
UncheckedIOException| Modifier and Type | Class and Description |
|---|---|
static class |
UncheckedBufferedReader.Builder
Builds a new
UncheckedBufferedReader instance. |
| Modifier and Type | Method and Description |
|---|---|
static UncheckedBufferedReader.Builder |
builder()
Constructs a new
UncheckedBufferedReader.Builder. |
void |
close()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
mark(int readAheadLimit)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
int |
read()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
int |
read(char[] cbuf)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
int |
read(char[] cbuf,
int off,
int len)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
int |
read(CharBuffer target)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
String |
readLine()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
boolean |
ready()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
reset()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
long |
skip(long n)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
lines, markSupportedpublic static UncheckedBufferedReader.Builder builder()
UncheckedBufferedReader.Builder.UncheckedBufferedReader.Builder.public void close() throws UncheckedIOException
IOException as UncheckedIOException.close in interface Closeableclose in interface AutoCloseableclose in class BufferedReaderUncheckedIOExceptionpublic void mark(int readAheadLimit) throws UncheckedIOException
IOException as UncheckedIOException.mark in class BufferedReaderUncheckedIOExceptionpublic int read() throws UncheckedIOException
IOException as UncheckedIOException.read in class BufferedReaderUncheckedIOExceptionpublic int read(char[] cbuf) throws UncheckedIOException
IOException as UncheckedIOException.read in class ReaderUncheckedIOExceptionpublic int read(char[] cbuf, int off, int len) throws UncheckedIOException
IOException as UncheckedIOException.read in class BufferedReaderUncheckedIOExceptionpublic int read(CharBuffer target) throws UncheckedIOException
IOException as UncheckedIOException.read in interface Readableread in class ReaderUncheckedIOExceptionpublic String readLine() throws UncheckedIOException
IOException as UncheckedIOException.readLine in class BufferedReaderUncheckedIOExceptionpublic boolean ready() throws UncheckedIOException
IOException as UncheckedIOException.ready in class BufferedReaderUncheckedIOExceptionpublic void reset() throws UncheckedIOException
IOException as UncheckedIOException.reset in class BufferedReaderUncheckedIOExceptionpublic long skip(long n) throws UncheckedIOException
IOException as UncheckedIOException.skip in class BufferedReaderUncheckedIOExceptionCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.