Package com.ibm.icu.text
Class CharsetRecog_sbcs.NGramParser
- java.lang.Object
-
- com.ibm.icu.text.CharsetRecog_sbcs.NGramParser
-
- Direct Known Subclasses:
CharsetRecog_sbcs.NGramParser_IBM420
- Enclosing class:
- CharsetRecog_sbcs
static class CharsetRecog_sbcs.NGramParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
byteIndex
protected byte[]
byteMap
private int
hitCount
private static int
N_GRAM_MASK
private int
ngram
private int
ngramCount
private int[]
ngramList
protected byte
spaceChar
-
Constructor Summary
Constructors Constructor Description NGramParser(int[] theNgramList, byte[] theByteMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addByte(int b)
private void
lookup(int thisNgram)
private int
nextByte(CharsetDetector det)
int
parse(CharsetDetector det)
int
parse(CharsetDetector det, byte spaceCh)
protected void
parseCharacters(CharsetDetector det)
private static int
search(int[] table, int value)
-
-
-
Field Detail
-
N_GRAM_MASK
private static final int N_GRAM_MASK
- See Also:
- Constant Field Values
-
byteIndex
protected int byteIndex
-
ngram
private int ngram
-
ngramList
private int[] ngramList
-
byteMap
protected byte[] byteMap
-
ngramCount
private int ngramCount
-
hitCount
private int hitCount
-
spaceChar
protected byte spaceChar
-
-
Method Detail
-
search
private static int search(int[] table, int value)
-
lookup
private void lookup(int thisNgram)
-
addByte
protected void addByte(int b)
-
nextByte
private int nextByte(CharsetDetector det)
-
parseCharacters
protected void parseCharacters(CharsetDetector det)
-
parse
public int parse(CharsetDetector det)
-
parse
public int parse(CharsetDetector det, byte spaceCh)
-
-