MCPcopy Index your code
hub / github.com/benfry/processing4 / createReader

Method createReader

core/src/processing/core/PApplet.java:6132–6142  ·  view source on GitHub ↗

Creates a BufferedReader object that can be used to read files line-by-line as individual String objects. This is the complement to the createWriter() function. For more information about the BufferedReader class and its methods like readLine() and close use

(String filename)

Source from the content-addressed store, hash-verified

6130 * @see PrintWriter
6131 */
6132 public BufferedReader createReader(String filename) {
6133 InputStream is = createInput(filename);
6134 if (is == null) {
6135 System.err.println("The file \"" + filename + "\" " +
6136 "is missing or inaccessible, make sure " +
6137 "the URL is valid or that the file has been " +
6138 "added to your sketch and is readable.");
6139 return null;
6140 }
6141 return createReader(is);
6142 }
6143
6144
6145 /**

Callers 11

handleSettingsMethod · 0.95
loadXMLMethod · 0.95
loadJSONObjectMethod · 0.95
loadJSONArrayMethod · 0.95
XMLMethod · 0.95
runMethod · 0.95
getHomeDirMethod · 0.95
loadMethod · 0.95
runMethod · 0.45
PShapeOBJMethod · 0.45
parseOBJMethod · 0.45

Calls 6

createInputMethod · 0.95
resetMethod · 0.65
printlnMethod · 0.45
getNameMethod · 0.45
readMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected