Package org.apache.commons.io.output
Class UncheckedFilterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.commons.io.output.UncheckedFilterOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public final class UncheckedFilterOutputStream extends java.io.FilterOutputStreamAFilterOutputStreamthat throwsUncheckedIOExceptioninstead ofUncheckedIOException.To build an instance, see
UncheckedFilterOutputStream.Builder.- Since:
- 2.12.0
- See Also:
FilterOutputStream,UncheckedIOException,UncheckedIOException
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUncheckedFilterOutputStream.BuilderBuilds a newUncheckedFilterOutputStreaminstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UncheckedFilterOutputStream.Builderbuilder()Constructs a newUncheckedFilterOutputStream.Builder.voidclose()Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidflush()Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(byte[] b)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(byte[] b, int off, int len)Calls this method's super and rethrowIOExceptionasUncheckedIOException.voidwrite(int b)Calls this method's super and rethrowIOExceptionasUncheckedIOException.
-
-
-
Method Detail
-
builder
public static UncheckedFilterOutputStream.Builder builder()
Constructs a newUncheckedFilterOutputStream.Builder.- Returns:
- a new
UncheckedFilterOutputStream.Builder.
-
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.FilterOutputStream- 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.FilterOutputStream- Throws:
java.io.UncheckedIOException
-
write
public void write(byte[] b) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.UncheckedIOException
-
write
public void write(byte[] b, int off, int len) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.UncheckedIOException
-
write
public void write(int b) throws java.io.UncheckedIOExceptionCalls this method's super and rethrowIOExceptionasUncheckedIOException.- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.UncheckedIOException
-
-