question: public static String copyToString ( Reader in ) throws IOException { StringWriter out = new StringWriter ( ) ; copy ( in , out ) ; String str = out . toString ( ) ; if ( str . startsWith ( "﻿" ) ) { return str . substring ( 1 ) ; } return str ; }
target:  Copy the contents of the given Reader into a String. Closes the reader when done.