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, writeToclose, size, toByteArray, toString, toString, toStringflush, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLength, write, write, writepublic ByteStream.Output()
public ByteStream.Output(int size)
public 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 © 2017 The Apache Software Foundation. All rights reserved.