public static class ByteUtil.ByteStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
_bytes |
private int |
_lastLength |
private int |
_length |
| Constructor and Description |
|---|
ByteStream() |
ByteStream(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureNewCapacity(int numBytes) |
byte |
get(int offset) |
byte[] |
getBytes() |
int |
getLength() |
void |
reset() |
void |
set(int offset,
byte b) |
void |
skip(int n) |
byte[] |
toByteArray() |
void |
trimTrailing(byte minTrimCode,
byte maxTrimCode) |
void |
write(byte[] b) |
void |
write(byte[] b,
int offset,
int length) |
void |
write(int b) |
void |
writeFill(int length,
byte b) |
void |
writeTo(ByteUtil.ByteStream out) |
private byte[] _bytes
private int _length
private int _lastLength
public int getLength()
public byte[] getBytes()
protected void ensureNewCapacity(int numBytes)
public void write(int b)
write in class java.io.OutputStreampublic void write(byte[] b)
write in class java.io.OutputStreampublic void write(byte[] b,
int offset,
int length)
write in class java.io.OutputStreampublic byte get(int offset)
public void set(int offset,
byte b)
public void writeFill(int length,
byte b)
public void skip(int n)
public void writeTo(ByteUtil.ByteStream out)
public byte[] toByteArray()
public void reset()
public void trimTrailing(byte minTrimCode,
byte maxTrimCode)