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:
Closeable
,Flushable
,AutoCloseable
A
FilterOutputStream
that throws UncheckedIOException
instead of UncheckedIOException
.
To build an instance, use UncheckedFilterOutputStream.Builder
.
- Since:
- 2.12.0
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newUncheckedFilterOutputStream.Builder
.void
close()
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
flush()
Calls this method's super and rethrowIOException
asUncheckedIOException
.void
write
(byte[] b) Calls this method's super and rethrowIOException
asUncheckedIOException
.void
write
(byte[] b, int off, int len) Calls this method's super and rethrowIOException
asUncheckedIOException
.void
write
(int b) Calls this method's super and rethrowIOException
asUncheckedIOException
.
-
Method Details
-
builder
Constructs a newUncheckedFilterOutputStream.Builder
.- Returns:
- a new
UncheckedFilterOutputStream.Builder
.
-
close
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
UncheckedIOException
-
flush
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classFilterOutputStream
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classFilterOutputStream
- Throws:
UncheckedIOException
-
write
Calls this method's super and rethrowIOException
asUncheckedIOException
.- Overrides:
write
in classFilterOutputStream
- Throws:
UncheckedIOException
-