public class ByteData extends Object
| Constructor and Description |
|---|
ByteData(int maxSpace)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte b)
Append byte to storage.
|
byte[] |
getData() |
byte |
getData(int idx)
Return a data byte.
|
int |
getLen() |
void |
setLen(int len)
Set the length of this ByteData object without re-allocating the underlying array.
|
public ByteData(int maxSpace)
maxSpace - The maximum space in the internal byte array.public void append(byte b)
b - byte to extendpublic byte[] getData()
public byte getData(int idx)
idx - The data byte to returnpublic int getLen()
public void setLen(int len)
Copyright © 2004–2017. All rights reserved.