org.apache.fop.hyphenation
Class CharVector
java.lang.Object
org.apache.fop.hyphenation.CharVector
- Cloneable, Serializable
public class CharVector
extends java.lang.Object
implements Cloneable, Serializable
This class implements a simple char vector with access to the
underlying array.
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(char[] a)
CharVector
public CharVector(char[] a,
int capacity)
CharVector
public CharVector(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()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.