Package com.optimaize.langdetect.frma
Class LangProfileReader
- java.lang.Object
-
- com.optimaize.langdetect.frma.LangProfileReader
-
public class LangProfileReader extends java.lang.Object
ReadsLangProfile
s.
-
-
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
-
Constructor Summary
Constructors Constructor Description LangProfileReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LangProfile
read(java.io.File profileFile)
Reads aLangProfile
from a File in UTF-8.LangProfile
read(java.io.InputStream inputStream)
Reads aLangProfile
from an InputStream in UTF-8.
-
-
-
Method Detail
-
read
public LangProfile read(java.io.File profileFile) throws java.io.IOException
Reads aLangProfile
from a File in UTF-8.- Throws:
java.io.IOException
-
read
public LangProfile read(java.io.InputStream inputStream) throws java.io.IOException
Reads aLangProfile
from an InputStream in UTF-8.- Throws:
java.io.IOException
-
-