org.apache.fop.layout.hyphenation
Class CharVector
- public class CharVector
- implements Cloneable, Serializable
This class implements a simple char vector with access to the
underlying array.
- Author:
- Carlos Villegas
Method Summary |
int | alloc(int size) |
int | capacity() returns current capacity of array |
void | clear() Reset Vector but don't resize or clear elements |
Object | clone() |
char | get(int index) |
char[] | getArray() |
int | length() return number of items in array |
void | put(int index, char val) |
void | trimToSize() |
CharVector
public CharVector()
CharVector
public CharVector(int capacity)
CharVector
public CharVector(char[] a)
CharVector
public CharVector(char[] a, int capacity)
alloc
public int alloc(int size)
capacity
public int capacity()
- returns current capacity of array
clear
public void clear()
- Reset Vector but don't resize or clear elements
clone
public Object clone()
get
public char get(int index)
getArray
public char[] getArray()
length
public int length()
- return number of items in array
put
public void put(int index, char val)
trimToSize
public void trimToSize()