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:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public final class UncheckedFilterWriter extends java.io.FilterWriterAFilterWriterthat throwsUncheckedIOExceptioninstead ofIOException.To build an instance, see
UncheckedFilterWriter.Builder.- Since:
- 2.12.0
- See Also:
FilterWriter,IOException,UncheckedIOException
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUncheckedFilterWriter.BuilderBuilds a newUncheckedFilterWriterinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Writerappend(char c)Calls this method's super and rethrowIOExceptionasUncheckedIOException.java.io.Writerappend(java.lang.CharSequence csq)Calls this method's super and rethrowIOExceptionasUncheckedIOException.java.io.Writerappend(java.lang.CharSequence csq, int start, int end)Calls this method's super and rethrowIOExceptionasUncheckedIOException.static UncheckedFilterWriter.Builderbuilder()Constructs a newUncheckedFilterWriter.Builder.voidclose()Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidflush()Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(char[] cbuf)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(char[] cbuf, int off, int len)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(int c)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(java.lang.String str)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(java.lang.String str, int off, int len)Calls this method's super and rethrowIOExceptionasUncheckedIOException.
-
-
-
Method Detail
-
builder
public static UncheckedFilterWriter.Builder builder()
Constructs a newUncheckedFilterWriter.Builder.- Returns:
- a new
UncheckedFilterWriter.Builder.
-
append
public java.io.Writer append(char c) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
appendin interfacejava.lang.Appendable- Overrides:
appendin classjava.io.Writer- Throws:
java.io.UncheckedIOException
-
append
public java.io.Writer append(java.lang.CharSequence csq) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
appendin interfacejava.lang.Appendable- Overrides:
appendin classjava.io.Writer- Throws:
java.io.UncheckedIOException
-
append
public java.io.Writer append(java.lang.CharSequence csq, int start, int end) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
appendin interfacejava.lang.Appendable- Overrides:
appendin classjava.io.Writer- Throws:
java.io.UncheckedIOException
-
close
public void close() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterWriter- Throws:
java.io.UncheckedIOException
-
flush
public void flush() throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterWriter- Throws:
java.io.UncheckedIOException
-
write
public void write(char[] cbuf) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.Writer- Throws:
java.io.UncheckedIOException
-
write
public void write(char[] cbuf, int off, int len) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.FilterWriter- Throws:
java.io.UncheckedIOException
-
write
public void write(int c) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.FilterWriter- Throws:
java.io.UncheckedIOException
-
write
public void write(java.lang.String str) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.Writer- Throws:
java.io.UncheckedIOException
-
write
public void write(java.lang.String str, int off, int len) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.FilterWriter- Throws:
java.io.UncheckedIOException
-
-