public class LanguageWriter extends Writer
Constructor and Description |
---|
LanguageWriter(LanguageDetector detector) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Ignored.
|
void |
flush()
Ignored.
|
LanguageDetector |
getDetector()
Returns the language detector used by this writer.
|
LanguageResult |
getLanguage()
Returns the detected language based on text written thus far.
|
void |
reset() |
void |
write(char[] cbuf,
int off,
int len) |
public LanguageWriter(LanguageDetector detector)
public LanguageDetector getDetector()
public LanguageResult getLanguage()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush()
public void reset()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.