Package org.apache.tika.langdetect
Class LanguageDetectorTest
- java.lang.Object
-
- org.apache.tika.langdetect.LanguageDetectorTest
-
public abstract class LanguageDetectorTest extends Object
-
-
Constructor Summary
Constructors Constructor Description LanguageDetectorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
copyAtMost(Reader input, Writer output, int limit)
protected String[]
getTestLanguages()
protected boolean
hasTestLanguage(String language)
protected void
writeTo(String language, Writer writer)
protected void
writeTo(String language, Writer writer, int limit)
-
-
-
Method Detail
-
getTestLanguages
protected String[] getTestLanguages() throws IOException
- Throws:
IOException
-
hasTestLanguage
protected boolean hasTestLanguage(String language)
-
writeTo
protected void writeTo(String language, Writer writer) throws IOException
- Throws:
IOException
-
writeTo
protected void writeTo(String language, Writer writer, int limit) throws IOException
- Throws:
IOException
-
copyAtMost
protected int copyAtMost(Reader input, Writer output, int limit) throws IOException
- Throws:
IOException
-
-