LanguageWriter@Deprecated
public class ProfilingWriter
extends java.io.Writer
| Modifier and Type | Field and Description |
|---|---|
private char[] |
buffer
Deprecated.
|
private int |
n
Deprecated.
|
private LanguageProfile |
profile
Deprecated.
|
| Constructor and Description |
|---|
ProfilingWriter()
Deprecated.
|
ProfilingWriter(LanguageProfile profile)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addLetter(char c)
Deprecated.
|
private void |
addSeparator()
Deprecated.
|
void |
close()
Deprecated.
|
void |
flush()
Deprecated.
Ignored.
|
LanguageIdentifier |
getLanguage()
Deprecated.
Returns the language that best matches the current state of the
language profile.
|
LanguageProfile |
getProfile()
Deprecated.
Returns the language profile being built by this writer.
|
void |
write(char[] cbuf,
int off,
int len)
Deprecated.
|
private final LanguageProfile profile
private char[] buffer
private int n
public ProfilingWriter(LanguageProfile profile)
public ProfilingWriter()
public LanguageProfile getProfile()
getLanguage() method to get the language that best
matches the current state of the profile.public LanguageIdentifier getLanguage()
public void write(char[] cbuf,
int off,
int len)
write in class java.io.Writerprivate void addLetter(char c)
private void addSeparator()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void flush()
flush in interface java.io.Flushableflush in class java.io.Writer