java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseablepublic class CompactDataOutput
extends java.io.DataOutputStream
CompactDataInput| Constructor | Description |
|---|---|
CompactDataOutput(java.io.OutputStream out) |
Creates a new
CompactDataOutput instance that writes data to the
specified underlying output stream |
| Modifier and Type | Method | 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.
|
public CompactDataOutput(java.io.OutputStream out)
CompactDataOutput instance that writes data to the
specified underlying output streamout - underlying output streampublic void writeVarInt(int value)
throws java.io.IOException
value - value to writejava.io.IOException - if thrown by the underlying streampublic void writeBooleanArray(boolean[] value)
throws java.io.IOException
value - boolean arrayjava.io.IOException - if thrown by the underlying streamCopyright © 2018. All rights reserved.