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 Appendable
append
in class Writer
UncheckedIOException
public Writer append(CharSequence csq) throws UncheckedIOException
IOException
as UncheckedIOException
.append
in interface Appendable
append
in class Writer
UncheckedIOException
public Writer append(CharSequence csq, int start, int end) throws UncheckedIOException
IOException
as UncheckedIOException
.append
in interface Appendable
append
in class Writer
UncheckedIOException
public void close() throws UncheckedIOException
IOException
as UncheckedIOException
.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterWriter
UncheckedIOException
public void flush() throws UncheckedIOException
IOException
as UncheckedIOException
.flush
in interface Flushable
flush
in class FilterWriter
UncheckedIOException
public void write(char[] cbuf) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class Writer
UncheckedIOException
public void write(char[] cbuf, int off, int len) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class FilterWriter
UncheckedIOException
public void write(int c) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class FilterWriter
UncheckedIOException
public void write(String str) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class Writer
UncheckedIOException
public void write(String str, int off, int len) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class FilterWriter
UncheckedIOException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.