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

Method readLine

examples/src/main/java/File.java:154–157  ·  view source on GitHub ↗

Read a single line from the file. Implements a JavaScript function that reads the next line from the file. Line terminators are not included in the returned string. @return the next line from the file as a string, or null if end of file is reached @throws IOException if an error occurred while

()

Source from the content-addressed store, hash-verified

152 * object, or if the file cannot be read
153 */
154 @JSFunction
155 public String readLine() throws IOException {
156 return getReader().readLine();
157 }
158
159 /**
160 * Read a single character from the file.

Callers 1

readLinesMethod · 0.95

Calls 2

getReaderMethod · 0.95
readLineMethod · 0.65

Tested by

no test coverage detected