UnicodeUnpairedSurrogateRemover
- @Deprecated public class org.apache.commons.lang3.text.translate.UnicodeUnpairedSurrogateRemover extends CodePointTranslator[source]
Deprecated: As of 3.6, use Apache Commons Text UnicodeUnpairedSurrogateRemover.
Helper subclass to CharSequenceTranslator to remove unpaired surrogates.
Constructors
Constructs a new instance. |
Methods
Implements translate that throws out unpaired surrogates. |
- @Override public boolean translate(int codePoint, Writer out) throws IOException[source]
Implements translate that throws out unpaired surrogates. Translate the specified code point into another.
- Parameters:
codePoint – int character input to translate.
out – Writer to optionally push the translated output to.
- Returns:
boolean as to whether translation occurred or not.
- Throws:
java.io.IOException – Thrown if and only if the Writer produces an IOException.