MCPcopy Create free account
hub / github.com/mozilla/rhino / writeLine

Method writeLine

examples/src/main/java/File.java:210–214  ·  view source on GitHub ↗

Write strings followed by a newline to the file. Implements a JavaScript function that takes a variable number of arguments, converts each argument to a string, writes those strings to the file, and then writes a platform-specific line separator. @param cx the current Context for this thread @p

(Context cx, Scriptable thisObj, Object[] args, Function funObj)

Source from the content-addressed store, hash-verified

208 * object, or if the file cannot be written to
209 */
210 @JSFunction
211 public static void writeLine(Context cx, Scriptable thisObj, Object[] args, Function funObj)
212 throws IOException {
213 write0(thisObj, args, true);
214 }
215
216 /**
217 * Get the current line number of the reader.

Callers 2

processFileFunction · 0.45
GenerateIndexFunction · 0.45

Calls 1

write0Method · 0.95

Tested by

no test coverage detected