public static Writer newWriter ( OutputStream stream , String charset ) throws UnsupportedEncodingException { return new OutputStreamWriter ( stream , charset ) ; }
Creates a writer for this stream using the given charset .