|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.text.WordBreakTable
This class implements a state transition table. After each transition, using the get method, the new state is returned along with information about the state change (ex. was it a "marked" transition"). This class is internal only.
Field Summary | |
private int |
cols
|
private byte[] |
data
|
private static int |
END_STATE
|
(package private) static byte |
INDEX_MASK
|
private static int |
INITIAL_STATE
|
(package private) static byte |
MARK_MASK
|
Constructor Summary | |
WordBreakTable(int cols,
byte[] data)
Construct a table using existing data. |
Method Summary | |
int |
get(int oldState,
int input)
Get the resulting state moving from oldState accepting input |
int |
initialState()
Get the start state |
boolean |
isEndState(int state)
Check is a state is the end state |
boolean |
isMarkState(int state)
Checks to see if the transition into the specified state was "marked" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final byte MARK_MASK
static final byte INDEX_MASK
private static final int INITIAL_STATE
private static final int END_STATE
private byte[] data
private int cols
Constructor Detail |
public WordBreakTable(int cols, byte[] data)
cols
- number of columns in the tabledata
- an encoded byte array containing state and transition dataMethod Detail |
public int get(int oldState, int input)
oldState
- current stateinput
- input
public boolean isMarkState(int state)
state
- the state as returned by get, initialState, or endState
public boolean isEndState(int state)
state
- the state to check
public int initialState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |