@Override
    public boolean translate(final int codepoint, final Writer out) throws IOException {
        if (codepoint >= Character.MIN_SURROGATE && codepoint <= Character.MAX_SURROGATE) {
            // It's a surrogate. Write nothing and say we've translated.
            return true;
        }
        // It's not a surrogate. Don't translate it.
        return false;
    }
@ Override public boolean translate ( final int codepoint , final Writer out ) throws IOException { if ( codepoint >= Character . MIN_SURROGATE && codepoint <= Character . MAX_SURROGATE ) { return true ; } return false ; }
Implementation of translate that throws out unpaired surrogates.
{@inheritDoc}