public final class UncheckedFilterReader extends 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. |
in
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(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 . |
markSupported
public static UncheckedFilterReader.Builder builder()
UncheckedFilterReader.Builder
.UncheckedFilterReader.Builder
.public void close() throws UncheckedIOException
IOException
as UncheckedIOException
.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterReader
UncheckedIOException
public void mark(int readAheadLimit) throws UncheckedIOException
IOException
as UncheckedIOException
.mark
in class FilterReader
UncheckedIOException
public int read() throws UncheckedIOException
IOException
as UncheckedIOException
.read
in class FilterReader
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 FilterReader
UncheckedIOException
public int read(CharBuffer target) throws UncheckedIOException
IOException
as UncheckedIOException
.read
in interface Readable
read
in class Reader
UncheckedIOException
public boolean ready() throws UncheckedIOException
IOException
as UncheckedIOException
.ready
in class FilterReader
UncheckedIOException
public void reset() throws UncheckedIOException
IOException
as UncheckedIOException
.reset
in class FilterReader
UncheckedIOException
public long skip(long n) throws UncheckedIOException
IOException
as UncheckedIOException
.skip
in class FilterReader
UncheckedIOException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.