com.lowagie.text.pdf.hyphenation
public class ByteVector extends Object implements Serializable
Field Summary | |
---|---|
byte[] | array
The encapsulated array |
int | blockSize |
static int | DEFAULT_BLOCK_SIZE
Capacity increment size |
int | n
Points to next free item |
static long | serialVersionUID |
Constructor Summary | |
---|---|
ByteVector() | |
ByteVector(int capacity) | |
ByteVector(byte[] a) | |
ByteVector(byte[] a, int capacity) |
Method Summary | |
---|---|
int | alloc(int size)
This is to implement memory allocation in the array. |
int | capacity()
returns current capacity of array |
byte | get(int index) |
byte[] | getArray() |
int | length()
return number of items in array |
void | put(int index, byte val) |
void | trimToSize() |