public static final class ByteStream.Output extends NonSyncByteArrayOutputStream implements ByteStream.RandomAccessOutput
buf, count
Constructor and Description |
---|
ByteStream.Output() |
ByteStream.Output(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
arraysEquals(ByteStream.Output output) |
byte[] |
getData() |
void |
reserve(int byteCount) |
void |
writeByte(long offset,
byte value) |
void |
writeInt(long offset,
int value) |
getLength, reset, 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 ByteStream.Output()
public ByteStream.Output(int size)
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 © 2017 The Apache Software Foundation. All rights reserved.