Class NoFlushOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.DataOutputStream
-
- org.apache.accumulo.core.crypto.streams.NoFlushOutputStream
-
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,AutoCloseable
public class NoFlushOutputStream extends DataOutputStream
-
-
Field Summary
-
Fields inherited from class java.io.DataOutputStream
written
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description NoFlushOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.io.DataOutputStream
size, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Methods inherited from class java.io.FilterOutputStream
close, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.io.DataOutput
write
-
-
-
-
Constructor Detail
-
NoFlushOutputStream
public NoFlushOutputStream(OutputStream out)
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOException
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.- Specified by:
write
in interfaceDataOutput
- Overrides:
write
in classDataOutputStream
- Throws:
IOException
-
flush
public void flush()
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classDataOutputStream
-
-