MCPcopy Index your code
hub / github.com/processing/processing / loadJSONArray

Method loadJSONArray

core/src/processing/core/PApplet.java:6156–6166  ·  view source on GitHub ↗

@webref input:files @param filename name of a file in the data folder or a URL @see JSONArray @see PApplet#loadJSONObject(String) @see PApplet#saveJSONObject(JSONObject, String) @see PApplet#saveJSONArray(JSONArray, String)

(String filename)

Source from the content-addressed store, hash-verified

6154 * @see PApplet#saveJSONArray(JSONArray, String)
6155 */
6156 public JSONArray loadJSONArray(String filename) {
6157 // can't pass of createReader() to the constructor b/c of resource leak
6158 BufferedReader reader = createReader(filename);
6159 JSONArray outgoing = new JSONArray(reader);
6160 try {
6161 reader.close();
6162 } catch (IOException e) { // not sure what would cause this
6163 e.printStackTrace();
6164 }
6165 return outgoing;
6166 }
6167
6168
6169 static public JSONArray loadJSONArray(File file) {

Callers

nothing calls this directly

Calls 3

createReaderMethod · 0.95
closeMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected