Class LangProfileReader


  • public class LangProfileReader
    extends java.lang.Object
    Reads LangProfiles.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern FREQ_PATTERN  
      private static java.util.regex.Pattern N_WORDS_PATTERN  
      private static java.util.regex.Pattern NAME_PATTERN  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LangProfile read​(java.io.File profileFile)
      Reads a LangProfile from a File in UTF-8.
      LangProfile read​(java.io.InputStream inputStream)
      Reads a LangProfile from an InputStream in UTF-8.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FREQ_PATTERN

        private static final java.util.regex.Pattern FREQ_PATTERN
      • N_WORDS_PATTERN

        private static final java.util.regex.Pattern N_WORDS_PATTERN
      • NAME_PATTERN

        private static final java.util.regex.Pattern NAME_PATTERN
    • Constructor Detail

      • LangProfileReader

        public LangProfileReader()
    • Method Detail

      • read

        public LangProfile read​(java.io.File profileFile)
                         throws java.io.IOException
        Reads a LangProfile from a File in UTF-8.
        Throws:
        java.io.IOException
      • read

        public LangProfile read​(java.io.InputStream inputStream)
                         throws java.io.IOException
        Reads a LangProfile from an InputStream in UTF-8.
        Throws:
        java.io.IOException