public final class UncheckedFilterOutputStream extends 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. |
out
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 . |
public static UncheckedFilterOutputStream.Builder builder()
UncheckedFilterOutputStream.Builder
.UncheckedFilterOutputStream.Builder
.public void close() throws UncheckedIOException
IOException
as UncheckedIOException
.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
UncheckedIOException
public void flush() throws UncheckedIOException
IOException
as UncheckedIOException
.flush
in interface Flushable
flush
in class FilterOutputStream
UncheckedIOException
public void write(byte[] b) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class FilterOutputStream
UncheckedIOException
public void write(byte[] b, int off, int len) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class FilterOutputStream
UncheckedIOException
public void write(int b) throws UncheckedIOException
IOException
as UncheckedIOException
.write
in class FilterOutputStream
UncheckedIOException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.