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, writeToclose, size, toByteArray, toString, toString, toStringflush, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLength, write, write, writepublic byte[] getData()
getData in class NonSyncByteArrayOutputStreampublic void writeInt(long offset,
int value)
writeInt in interface ByteStream.RandomAccessOutputpublic void writeByte(long offset,
byte value)
writeByte in interface ByteStream.RandomAccessOutputpublic void reserve(int byteCount)
reserve in interface ByteStream.RandomAccessOutputpublic boolean arraysEquals(ByteStream.Output output)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.