public final class UncheckedFilterOutputStream
extends java.io.FilterOutputStream
FilterOutputStream that throws UncheckedIOException instead of UncheckedIOException.
To build an instance, see UncheckedFilterOutputStream.Builder.
FilterOutputStream,
UncheckedIOException,
UncheckedIOException| Modifier and Type | Class and Description |
|---|---|
static class |
UncheckedFilterOutputStream.Builder
Builds a new
UncheckedFilterOutputStream instance. |
| Modifier | Constructor and Description |
|---|---|
private |
UncheckedFilterOutputStream(java.io.OutputStream outputStream)
Constructs an output stream filter built on top of the specified underlying output stream.
|
| Modifier and Type | Method and Description |
|---|---|
static UncheckedFilterOutputStream.Builder |
builder()
Constructs a new
UncheckedFilterOutputStream.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(byte[] b)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(byte[] b,
int off,
int len)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
void |
write(int b)
Calls this method's super and rethrow
IOException as UncheckedIOException. |
private UncheckedFilterOutputStream(java.io.OutputStream outputStream)
outputStream - the underlying output stream, or null if this instance is to be created without an
underlying stream.public static UncheckedFilterOutputStream.Builder builder()
UncheckedFilterOutputStream.Builder.UncheckedFilterOutputStream.Builder.public void close()
throws java.io.UncheckedIOException
IOException as UncheckedIOException.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterOutputStreamjava.io.UncheckedIOExceptionpublic void flush()
throws java.io.UncheckedIOException
IOException as UncheckedIOException.flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.UncheckedIOExceptionpublic void write(byte[] b)
throws java.io.UncheckedIOException
IOException as UncheckedIOException.write in class java.io.FilterOutputStreamjava.io.UncheckedIOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.UncheckedIOException
IOException as UncheckedIOException.write in class java.io.FilterOutputStreamjava.io.UncheckedIOExceptionpublic void write(int b)
throws java.io.UncheckedIOException
IOException as UncheckedIOException.write in class java.io.FilterOutputStreamjava.io.UncheckedIOException