public static void copy ( Reader reader , OutputStream out ) throws IOException { copy ( reader , getOutputStreamWriter ( out ) ) ; out . flush ( ) ; }
Copies the content of a reader to an output stream .