Class Checker

    • Field Detail

      • totalNGrams

        private int totalNGrams
      • totalHits

        private int totalHits
      • language

        private java.lang.String language
      • encoding

        private java.lang.String encoding
      • histogram

        private int[] histogram
      • buffer

        private char[] buffer
      • bufIndex

        private int bufIndex
      • bufMax

        private int bufMax
    • Constructor Detail

      • Checker

        public Checker​(NGramList list,
                       InputFile dataFile)
        TODO This should take cumulative percent and the name...
    • Method Detail

      • resetCounts

        private void resetCounts()
      • resetHistogram

        private void resetHistogram()
      • exceptionError

        private static void exceptionError​(java.lang.Exception e)
      • languageName

        private static java.lang.String languageName​(java.lang.String filename)
      • nextBuffer

        private boolean nextBuffer​(InputFile inputFile)
      • parseBuffer

        private void parseBuffer()
      • getLanguage

        public java.lang.String getLanguage()
      • setMapper

        public void setMapper​(InputFile file)
      • checkBuffer

        public int checkBuffer​(char[] theBuffer,
                               int charCount)
      • check

        public void check​(InputFile dataFile)