public class DiscardCloseOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
DiscardCloseOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len)
It is very important to override this method!! The underlying method from FilterOutputStream
calls write a single byte at a time and will kill performance.
|
flush, write, write
public DiscardCloseOutputStream(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 © 2011–2018 The Apache Software Foundation. All rights reserved.