public static final class ByteStream.Output extends NonSyncByteArrayOutputStream implements ByteStream.RandomAccessOutput
buf, count
Modifier and Type | Method and Description |
---|---|
boolean |
arraysEquals(ByteStream.Output output) |
byte[] |
getData() |
void |
reserve(int byteCount)
Optimize for the common cases:
Reserve 1 byte
Reserve 1 int (4 bytes)
|
void |
writeByte(long offset,
byte value) |
void |
writeInt(long offset,
int value) |
getLength, reset, setWritePosition, write, write, write, writeTo
close, size, toByteArray, toString, toString, toString
flush, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLength, write, write, write
public byte[] getData()
getData
in class NonSyncByteArrayOutputStream
public void writeInt(long offset, int value)
writeInt
in interface ByteStream.RandomAccessOutput
public void writeByte(long offset, byte value)
writeByte
in interface ByteStream.RandomAccessOutput
public void reserve(int byteCount)
reserve
in interface ByteStream.RandomAccessOutput
public boolean arraysEquals(ByteStream.Output output)
Copyright © 2022 The Apache Software Foundation. All rights reserved.