question: public static void copy ( String in , Charset charset , OutputStream out ) throws IOException { Assert . notNull ( in , "No input String specified" ) ; Assert . notNull ( charset , "No charset specified" ) ; Assert . notNull ( out , "No OutputStream specified" ) ; Writer writer = new OutputStreamWriter ( out , charset ) ; writer . write ( in ) ; writer . flush ( ) ; }
target:  Copy the contents of the given String to the given output OutputStream. Leaves the stream open when done.