public class ByteBufferArray extends Object
ByteBufferArray class.
| Constructor and Description |
|---|
ByteBufferArray()
Constructor for ByteBufferArray.
|
ByteBufferArray(int initial)
Constructor for ByteBufferArray.
|
ByteBufferArray(int initial,
int extend)
Constructor for ByteBufferArray.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte in)
append.
|
void |
append(byte[] in)
append.
|
void |
append(byte[] in,
int offset,
int len)
append.
|
void |
clear()
clear.
|
byte[] |
getInternalBuffer()
getInternalBuffer.
|
int |
getSize()
getSize.
|
boolean |
isCurrentlyFull()
isCurrentlyFull.
|
byte[] |
toByte()
toByte.
|
public ByteBufferArray()
Constructor for ByteBufferArray.
public ByteBufferArray(int initial)
Constructor for ByteBufferArray.
initial - a int.public ByteBufferArray(int initial,
int extend)
Constructor for ByteBufferArray.
initial - a int.extend - a int.public void append(byte in)
append.
in - a byte.public void append(byte[] in)
append.
in - an array of byte.public void append(byte[] in,
int offset,
int len)
append.
in - an array of byte.offset - a int.len - a int.public int getSize()
getSize.
public byte[] toByte()
toByte.
public boolean isCurrentlyFull()
isCurrentlyFull.
public byte[] getInternalBuffer()
getInternalBuffer.
public void clear()
clear.
Copyright © 2016. All Rights Reserved.