Class Checker
java.lang.Object
com.ibm.icu.dev.tool.charsetdet.sbcs.Checker
- All Implemented Interfaces:
NGramParser.NGramParserClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate char[]private static final intprivate intprivate intprivate Stringprivate int[]private Stringprivate NGramListprivate NGramParserprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintcheckBuffer(char[] theBuffer, int charCount) private static voidvoidhandleNGram(String key) private static StringlanguageName(String filename) private booleannextBuffer(InputFile inputFile) charnextChar()private voidprivate voidprivate voidvoid
-
Field Details
-
ngrams
-
totalNGrams
private int totalNGrams -
totalHits
private int totalHits -
language
-
encoding
-
histogram
private int[] histogram -
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
buffer
private char[] buffer -
bufIndex
private int bufIndex -
bufMax
private int bufMax -
parser
-
-
Constructor Details
-
Checker
TODO This should take cumulative percent and the name...
-
-
Method Details
-
handleNGram
- Specified by:
handleNGramin interfaceNGramParser.NGramParserClient
-
resetCounts
private void resetCounts() -
resetHistogram
private void resetHistogram() -
exceptionError
-
languageName
-
nextBuffer
-
parseBuffer
private void parseBuffer() -
nextChar
public char nextChar()- Specified by:
nextCharin interfaceNGramParser.NGramParserClient
-
getLanguage
-
setMapper
-
checkBuffer
public int checkBuffer(char[] theBuffer, int charCount) -
check
-