MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getWriter

Method getWriter

CodenameOne/src/com/codename1/io/Util.java:138–145  ·  view source on GitHub ↗
(OutputStream out)

Source from the content-addressed store, hash-verified

136 ///
137 /// the writer
138 public static OutputStreamWriter getWriter(OutputStream out) {
139 try {
140 return new OutputStreamWriter(out, "UTF-8");
141 } catch (UnsupportedEncodingException e) {
142 // never happens
143 throw new RuntimeException(e.toString(), e);
144 }
145 }
146
147 /// Copy the input stream into the output stream, closes both streams when finishing or in
148 /// a case of an exception

Callers 6

createWriterMethod · 0.95
dumpProgramMethod · 0.45
evalSourceMethod · 0.45
evalMethod · 0.45
testREDebugCompilerMethod · 0.45

Calls 1

toStringMethod · 0.65

Tested by 1

testREDebugCompilerMethod · 0.36