public class CompactDataOutput extends DataOutputStream
CompactDataInput
written
out
Constructor and Description |
---|
CompactDataOutput(OutputStream out)
Creates a new
CompactDataOutput instance that writes data to the
specified underlying output stream |
Modifier and Type | Method and Description |
---|---|
void |
writeBooleanArray(boolean[] value)
Writes a boolean array.
|
void |
writeVarInt(int value)
Writes a variable length representation of an integer value that reduces
the number of written bytes for small positive values.
|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
close, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public CompactDataOutput(OutputStream out)
CompactDataOutput
instance that writes data to the
specified underlying output streamout
- underlying output streampublic void writeVarInt(int value) throws IOException
value
- value to writeIOException
- if thrown by the underlying streampublic void writeBooleanArray(boolean[] value) throws IOException
value
- boolean arrayIOException
- if thrown by the underlying streamCopyright © 2018. All rights reserved.