public final class UncheckedFilterReader
extends java.io.FilterReader
FilterReader
that throws UncheckedIOException
instead of IOException
.
To build an instance, see UncheckedFilterReader.Builder
.
FilterReader
,
IOException
,
UncheckedIOException
Modifier and Type | Class and Description |
---|---|
static class |
UncheckedFilterReader.Builder
Builds a new
UncheckedFilterReader instance. |
Modifier | Constructor and Description |
---|---|
private |
UncheckedFilterReader(java.io.Reader reader)
Constructs a new filtered reader.
|
Modifier and Type | Method and Description |
---|---|
static UncheckedFilterReader.Builder |
builder()
Constructs a new
UncheckedFilterReader.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 . |
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 . |
private UncheckedFilterReader(java.io.Reader reader)
reader
- a Reader object providing the underlying stream.java.lang.NullPointerException
- if reader
is null
.public static UncheckedFilterReader.Builder builder()
UncheckedFilterReader.Builder
.UncheckedFilterReader.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.FilterReader
java.io.UncheckedIOException
public void mark(int readAheadLimit) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.mark
in class java.io.FilterReader
java.io.UncheckedIOException
public int read() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.read
in class java.io.FilterReader
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.FilterReader
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 boolean ready() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.ready
in class java.io.FilterReader
java.io.UncheckedIOException
public void reset() throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.reset
in class java.io.FilterReader
java.io.UncheckedIOException
public long skip(long n) throws java.io.UncheckedIOException
IOException
as UncheckedIOException
.skip
in class java.io.FilterReader
java.io.UncheckedIOException