public class UnclosableOutputStream extends FilterOutputStream
OutputStream
wrapper that do not close underlying OutputStream
but call
OutputStream.flush()
instead.out
Constructor and Description |
---|
UnclosableOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
flush, write, write
public UnclosableOutputStream(OutputStream out)
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
Copyright © 2020. All rights reserved.