public class ByteArrayBuffer extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected int |
position |
Constructor and Description |
---|
ByteArrayBuffer() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterResize() |
void |
append(byte[] bytes) |
void |
append(byte[] bytes,
int offset,
int length) |
void |
appendInt(int v) |
void |
appendIntAsByte(int msgType) |
void |
flushTo(OutputStream socketOutputStream) |
void |
reset() |
public void reset()
public void appendIntAsByte(int msgType)
protected void afterResize()
public void appendInt(int v)
public void append(byte[] bytes, int offset, int length)
public void append(byte[] bytes)
public void flushTo(OutputStream socketOutputStream) throws IOException
IOException
Copyright © 2016. All Rights Reserved.