On this page

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

UnicodeUnpairedSurrogateRemover()

Constructs a new instance.

public UnicodeUnpairedSurrogateRemover()[source]

Constructs a new instance.

Methods

translate(int, Writer)

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.