List of utility methods to do OutputStreamWriter Create
Writer | getOutputStreamWriter(OutputStream out) Returns a writer for the specified output stream, using UTF-8 encoding. try { return new OutputStreamWriter(out, "UTF-8"); } catch (UnsupportedEncodingException ex) { throw new RuntimeException(ex); |
OutputStreamWriter | newOutputStreamWriter(OutputStream os) new Output Stream Writer try { return new OutputStreamWriter(os, strCode); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return null; |