question: public final String translate ( CharSequence input ) { if ( input == null ) { return null ; } try { StringWriter writer = new StringWriter ( input . length ( ) * 2 ) ; translate ( input , writer ) ; return writer . toString ( ) ; } catch ( IOException ioe ) { throw new RuntimeException ( ioe ) ; } }
target:  Helper for non-Writer usage.