|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derbyTesting.functionTests.util.streams.CharAlphabet
public class CharAlphabet
A looping alphabet, returning characters. The alphabet loops over a list of characters. The alphabet-object is used by looping readers, which in turn is used for testing methods requiring streaming inputs. The following alphabets have been defined:
| Field Summary | |
|---|---|
private int |
charCount
Number of characters in the alphabet. |
private char[] |
chars
Characters in the alphabet. |
static char[] |
CJKSUBSET
CJK subset; 12 letters, UNICODE U4E00 |
static char[] |
MODERNLATINLOWER
Modern latin, lowercase; a - z, 26 letters |
private java.lang.String |
name
Name of the alphabet. |
static char[] |
NO_DK_LOWER
Norwegian/Danish alphabet, lowercase; 29 letters |
private int |
off
Current offset into the alphabet/character array. |
static char[] |
TAMIL
Subset of Tamil alphabet; 46 letters, UNICODE U0B80 |
| Constructor Summary | |
|---|---|
private |
CharAlphabet(java.lang.String name,
char[] chars)
Create an alphabet with the given name and characters. |
| Method Summary | |
|---|---|
int |
charCount()
Return the number of characters in the alphabet. |
static CharAlphabet |
cjkSubset()
Get a CJK subset alphabet. |
java.lang.String |
getName()
Return the name of the alphabet. |
static CharAlphabet |
modernLatinLowercase()
Get a modern latin lowercase alphabet. |
char |
nextChar()
Return the next char. |
int |
nextCharAsInt()
Return the next char as an integer. |
int |
nextCharToRead(int charsRead)
Compute the next character to read after reading the specified number of characters. |
void |
reset()
Reset the alphabet, the next character returned will be the first character in the alphabet. |
static CharAlphabet |
tamil()
Get a Tamil alphabet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static char[] MODERNLATINLOWER
public static char[] NO_DK_LOWER
public static char[] TAMIL
public static char[] CJKSUBSET
private final java.lang.String name
private final char[] chars
private final int charCount
private int off
| Constructor Detail |
|---|
private CharAlphabet(java.lang.String name,
char[] chars)
name - name of the alphabetchars - characters in the alphabet.| Method Detail |
|---|
public static CharAlphabet modernLatinLowercase()
public static CharAlphabet cjkSubset()
public static CharAlphabet tamil()
public java.lang.String getName()
public int charCount()
public int nextCharAsInt()
integer.
integerpublic char nextChar()
public int nextCharToRead(int charsRead)
charsRead - the number of characters read
public void reset()
|
Built on Thu 2008-08-14 18:45:39-0700, from revision 686102 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||