question: public static void writeStringToStream ( String string , OutputStream stream , Charset charset ) throws IOException { OutputStreamWriter osw = new OutputStreamWriter ( stream , charset ) ; try { osw . append ( string ) ; osw . flush ( ) ; } finally { osw . close ( ) ; } }
target:  Writes given string to given stream, using given charset 