Package org.apache.commons.io.output
Class UncheckedFilterWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.apache.commons.io.output.UncheckedFilterWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
A
FilterWriter
that throws UncheckedIOException
instead of IOException
.
To build an instance, use UncheckedFilterWriter.Builder
.
- Since:
- 2.12.0
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.io.FilterWriter
out
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) Calls this method's super and rethrowIOException
asUncheckedIOException
.append
(CharSequence csq) Calls this method's super and rethrowIOException
asUncheckedIOException
.append
(CharSequence csq, int start, int end) Calls this method's super and rethrowIOException
asUncheckedIOException
.builder()
Constructs a newUncheckedFilterWriter.Builder
.void
close()
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
flush()
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
write
(char[] cbuf) Calls this method's super and rethrowIOException
asUncheckedIOException
.void
write
(char[] cbuf, int off, int len) Calls this method's super and rethrowIOException
asUncheckedIOException
.void
write
(int c) Calls this method's super and rethrowIOException
asUncheckedIOException
.void
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
Calls this method's super and rethrowIOException
asUncheckedIOException
.
-
Method Details
-
builder
Constructs a newUncheckedFilterWriter.Builder
.- Returns:
- a new
UncheckedFilterWriter.Builder
.
-
append
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
UncheckedIOException
-
append
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
UncheckedIOException
-
append
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
UncheckedIOException
-
close
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterWriter
- Throws:
UncheckedIOException
-
flush
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterWriter
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classWriter
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classFilterWriter
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classFilterWriter
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classWriter
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classFilterWriter
- Throws:
UncheckedIOException
-