public final class UncheckedBufferedReader
extends java.io.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(java.nio.CharBuffer target)
Calls this method's super and rethrow
IOException as UncheckedIOException . |
java.lang.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 . |
public static UncheckedBufferedReader.Builder builder()
UncheckedBufferedReader.Builder
.UncheckedBufferedReader.Builder
.public void close() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.BufferedReader
java.io.UncheckedIOException
public void mark(int readAheadLimit) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.mark
in class java.io.BufferedReader
java.io.UncheckedIOException
public int read() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.BufferedReader
java.io.UncheckedIOException
public int read(char[] cbuf) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.Reader
java.io.UncheckedIOException
public int read(char[] cbuf, int off, int len) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.BufferedReader
java.io.UncheckedIOException
public int read(java.nio.CharBuffer target) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in interface java.lang.Readable
read
in class java.io.Reader
java.io.UncheckedIOException
public java.lang.String readLine() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.readLine
in class java.io.BufferedReader
java.io.UncheckedIOException
public boolean ready() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.ready
in class java.io.BufferedReader
java.io.UncheckedIOException
public void reset() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.reset
in class java.io.BufferedReader
java.io.UncheckedIOException
public long skip(long n) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.skip
in class java.io.BufferedReader
java.io.UncheckedIOException
Copyright © 2010 - 2023 Adobe. All Rights Reserved