public final class RBBIDataWrapper extends Object
Internal class used for Rule Based Break Iterators.
This class provides access to the compiled break rule data, as it is stored in a .brk file. Refer to the file common/rbbidata.h from ICU4C for further details.
| Modifier and Type | Class and Description |
|---|---|
static class |
RBBIDataWrapper.RBBIDataHeader
Data Header.
|
static class |
RBBIDataWrapper.RBBIStateTable
A RBBI State Transition table, the form of the data used at run time in Java.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPTING
offset to the "accepting" field in a state table row.
|
static int |
ACCEPTING_UNCONDITIONAL
value constant for the ACCEPTING field of a state table row.
|
static int |
DATA_FORMAT |
static int |
DH_CATCOUNT |
static int |
DH_FORMATVERSION |
static int |
DH_FTABLE |
static int |
DH_FTABLELEN |
static int |
DH_LENGTH |
static int |
DH_MAGIC |
static int |
DH_RTABLE |
static int |
DH_RTABLELEN |
static int |
DH_RULESOURCE |
static int |
DH_RULESOURCELEN |
static int |
DH_SIZE |
static int |
DH_STATUSTABLE |
static int |
DH_STATUSTABLELEN |
static int |
DH_TRIE |
static int |
DH_TRIELEN |
RBBIDataWrapper.RBBIStateTable |
fFTable |
RBBIDataWrapper.RBBIDataHeader |
fHeader |
static int |
FORMAT_VERSION |
RBBIDataWrapper.RBBIStateTable |
fRTable |
String |
fRuleSource |
int[] |
fStatusTable |
CodePointTrie |
fTrie |
static int |
LOOKAHEAD
offset to the "lookahead" field in a state table row.
|
static int |
NEXTSTATES
offset to the start of the next states array in a state table row.
|
static int |
RBBI_8BITS_ROWS |
static int |
RBBI_BOF_REQUIRED |
static int |
RBBI_LOOKAHEAD_HARD_BREAK |
static int |
TAGSIDX
offset to the "tagIndex" field in a state table row.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
charToString(char n,
int width) |
void |
dump(PrintStream out)
Debug function to display the break iterator data.
|
static boolean |
equals(RBBIDataWrapper.RBBIStateTable left,
RBBIDataWrapper.RBBIStateTable right)
Equals helper for state tables, including null handling.
|
static RBBIDataWrapper |
get(ByteBuffer bytes)
Get an RBBIDataWrapper from an InputStream onto a pre-compiled set
of RBBI rules.
|
int |
getRowIndex(int state)
RBBI State Table Indexing Function.
|
static String |
intToHexString(int n,
int width)
Fixed width int-to-string conversion.
|
static String |
intToString(int n,
int width)
Fixed width int-to-string conversion.
|
public RBBIDataWrapper.RBBIDataHeader fHeader
public RBBIDataWrapper.RBBIStateTable fFTable
public RBBIDataWrapper.RBBIStateTable fRTable
public CodePointTrie fTrie
public String fRuleSource
public int[] fStatusTable
public static final int DATA_FORMAT
public static final int FORMAT_VERSION
public static final int DH_SIZE
public static final int DH_MAGIC
public static final int DH_FORMATVERSION
public static final int DH_LENGTH
public static final int DH_CATCOUNT
public static final int DH_FTABLE
public static final int DH_FTABLELEN
public static final int DH_RTABLE
public static final int DH_RTABLELEN
public static final int DH_TRIE
public static final int DH_TRIELEN
public static final int DH_RULESOURCE
public static final int DH_RULESOURCELEN
public static final int DH_STATUSTABLE
public static final int DH_STATUSTABLELEN
public static final int ACCEPTING
public static final int LOOKAHEAD
public static final int TAGSIDX
public static final int NEXTSTATES
public static final int ACCEPTING_UNCONDITIONAL
public static final int RBBI_LOOKAHEAD_HARD_BREAK
public static final int RBBI_BOF_REQUIRED
public static final int RBBI_8BITS_ROWS
public static boolean equals(RBBIDataWrapper.RBBIStateTable left, RBBIDataWrapper.RBBIStateTable right)
public int getRowIndex(int state)
public static RBBIDataWrapper get(ByteBuffer bytes) throws IOException
IOExceptionpublic void dump(PrintStream out)
public static String intToString(int n, int width)
public static String charToString(char n, int width)
public static String intToHexString(int n, int width)