public class NoFlushOutputStream extends FilterOutputStream
out
Constructor and Description |
---|
NoFlushOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
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.
|
close, write, write
public NoFlushOutputStream(OutputStream out)
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void flush()
flush
in interface Flushable
flush
in class FilterOutputStream
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.