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. |
markSupportedpublic static UncheckedFilterReader.Builder builder()
UncheckedFilterReader.Builder.UncheckedFilterReader.Builder.public void close() throws UncheckedIOException
IOException as UncheckedIOException.close in interface Closeableclose in interface AutoCloseableclose in class FilterReaderUncheckedIOExceptionpublic void mark(int readAheadLimit) throws UncheckedIOException
IOException as UncheckedIOException.mark in class FilterReaderUncheckedIOExceptionpublic int read() throws UncheckedIOException
IOException as UncheckedIOException.read in class FilterReaderUncheckedIOExceptionpublic 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 FilterReaderUncheckedIOExceptionpublic int read(CharBuffer target) throws UncheckedIOException
IOException as UncheckedIOException.read in interface Readableread in class ReaderUncheckedIOExceptionpublic boolean ready() throws UncheckedIOException
IOException as UncheckedIOException.ready in class FilterReaderUncheckedIOExceptionpublic void reset() throws UncheckedIOException
IOException as UncheckedIOException.reset in class FilterReaderUncheckedIOExceptionpublic long skip(long n) throws UncheckedIOException
IOException as UncheckedIOException.skip in class FilterReaderUncheckedIOExceptionCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.