* @return detected language
* @throws IOException
*/
public static String detectLanguage(InputStream is, String charset) throws IOException {
LanguageIdentifier li = getLIInstance();
return li.identify(is, charset);
}
private static LanguageIdentifier getLIInstance() {
if (langID == null) {
langID = new LanguageIdentifier();