Class UnicodeUnpairedSurrogateRemover
java.lang.Object
org.apache.commons.lang3.text.translate.CharSequenceTranslator
org.apache.commons.lang3.text.translate.CodePointTranslator
org.apache.commons.lang3.text.translate.UnicodeUnpairedSurrogateRemover
Deprecated.
As of 3.6, use Apache Commons Text
UnicodeUnpairedSurrogateRemover.
Helper subclass to CharSequenceTranslator to remove unpaired surrogates.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CodePointTranslator
translateModifier and TypeMethodDescriptionfinal inttranslate(CharSequence input, int index, Writer out) Deprecated.Implements translate to map onto the abstract translate(int, Writer) method.Methods inherited from class CharSequenceTranslator
hex, translate, translate, withModifier and TypeMethodDescriptionstatic Stringhex(int codePoint) Deprecated.Returns an upper case hexadecimalStringfor the given character.final Stringtranslate(CharSequence input) Deprecated.Helper for non-Writer usage.final voidtranslate(CharSequence input, Writer writer) Deprecated.Translate an input onto a Writer.final CharSequenceTranslatorwith(CharSequenceTranslator... translators) Deprecated.Helper method to create a merger of this translator with another set of translators.
-
Constructor Details
-
UnicodeUnpairedSurrogateRemover
-
-
Method Details
-
translate
Deprecated.Implements translate that throws out unpaired surrogates. Translate the specified code point into another.- Specified by:
translatein classCodePointTranslator- 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:
IOException- Thrown if and only if the Writer produces an IOException.
-