public final class UncheckedFilterWriter extends FilterWriter
FilterWriter that throws UncheckedIOException instead of IOException.
To build an instance, see UncheckedFilterWriter.Builder.
FilterWriter,
IOException,
UncheckedIOException| Modifier and Type | Class and Description |
|---|---|
static class |
UncheckedFilterWriter.Builder
Builds a new
UncheckedFilterWriter instance. |
out| Modifier and Type | Method and Description |
|---|---|
Writer |
append(char c)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
Writer |
append(CharSequence csq)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
Writer |
append(CharSequence csq,
int start,
int end)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
static UncheckedFilterWriter.Builder |
builder()
Constructs a new
UncheckedFilterWriter.Builder. |
void |
close()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
flush()
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(char[] cbuf)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(char[] cbuf,
int off,
int len)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(int c)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(String str)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(String str,
int off,
int len)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
public static UncheckedFilterWriter.Builder builder()
UncheckedFilterWriter.Builder.UncheckedFilterWriter.Builder.public Writer append(char c) throws UncheckedIOException
IOException as UncheckedIOException.append in interface Appendableappend in class WriterUncheckedIOExceptionpublic Writer append(CharSequence csq) throws UncheckedIOException
IOException as UncheckedIOException.append in interface Appendableappend in class WriterUncheckedIOExceptionpublic Writer append(CharSequence csq, int start, int end) throws UncheckedIOException
IOException as UncheckedIOException.append in interface Appendableappend in class WriterUncheckedIOExceptionpublic void close() throws UncheckedIOException
IOException as UncheckedIOException.close in interface Closeableclose in interface AutoCloseableclose in class FilterWriterUncheckedIOExceptionpublic void flush() throws UncheckedIOException
IOException as UncheckedIOException.flush in interface Flushableflush in class FilterWriterUncheckedIOExceptionpublic void write(char[] cbuf) throws UncheckedIOException
IOException as UncheckedIOException.write in class WriterUncheckedIOExceptionpublic void write(char[] cbuf, int off, int len) throws UncheckedIOException
IOException as UncheckedIOException.write in class FilterWriterUncheckedIOExceptionpublic void write(int c) throws UncheckedIOException
IOException as UncheckedIOException.write in class FilterWriterUncheckedIOExceptionpublic void write(String str) throws UncheckedIOException
IOException as UncheckedIOException.write in class WriterUncheckedIOExceptionpublic void write(String str, int off, int len) throws UncheckedIOException
IOException as UncheckedIOException.write in class FilterWriterUncheckedIOExceptionCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.