public class CompactDataOutput extends DataOutputStream
CompactDataInputwrittenout| 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, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic 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 © 2024. All rights reserved.