public static void copyStreamToWriter ( InputStream in , Writer out , String encoding , boolean close ) throws IOException { InputStreamReader reader = new InputStreamReader ( in , encoding ) ; copyReaderToWriter ( reader , out , close ) ; }
Copies an InputStream to a Writer .