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, markSupported
public static UncheckedBufferedReader.Builder builder()
UncheckedBufferedReader.Builder
.UncheckedBufferedReader.Builder
.public void close() throws UncheckedIOException
IOException
as UncheckedIOException
.close
in interface Closeable
close
in interface AutoCloseable
close
in class BufferedReader
UncheckedIOException
public void mark(int readAheadLimit) throws UncheckedIOException
IOException
as UncheckedIOException
.mark
in class BufferedReader
UncheckedIOException
public int read() throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class BufferedReader
UncheckedIOException
public int read(char[] cbuf) throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class Reader
UncheckedIOException
public int read(char[] cbuf, int off, int len) throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class BufferedReader
UncheckedIOException
public int read(CharBuffer target) throws UncheckedIOException
IOException
as UncheckedIOException
.read
in interface Readable
read
in class Reader
UncheckedIOException
public String readLine() throws UncheckedIOException
IOException
as UncheckedIOException
.readLine
in class BufferedReader
UncheckedIOException
public boolean ready() throws UncheckedIOException
IOException
as UncheckedIOException
.ready
in class BufferedReader
UncheckedIOException
public void reset() throws UncheckedIOException
IOException
as UncheckedIOException
.reset
in class BufferedReader
UncheckedIOException
public long skip(long n) throws UncheckedIOException
IOException
as UncheckedIOException
.skip
in class BufferedReader
UncheckedIOException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.