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

Method loadStrings

core/src/processing/core/PApplet.java:6721–6738  ·  view source on GitHub ↗

@nowebref

(File file)

Source from the content-addressed store, hash-verified

6719 * @nowebref
6720 */
6721 static public String[] loadStrings(File file) {
6722 if (!file.exists()) {
6723 System.err.println(file + " does not exist, loadStrings() will return null");
6724 return null;
6725 }
6726
6727 InputStream is = createInput(file);
6728 if (is != null) {
6729 String[] outgoing = loadStrings(is);
6730 try {
6731 is.close();
6732 } catch (IOException e) {
6733 e.printStackTrace();
6734 }
6735 return outgoing;
6736 }
6737 return null;
6738 }
6739
6740
6741 /**

Callers 15

loadVertexShaderMethod · 0.95
loadFragmentShaderMethod · 0.95
loadFragmentShaderMethod · 0.95
loadVertexShaderMethod · 0.95
StringDictMethod · 0.95
FloatDictMethod · 0.95
DoubleDictMethod · 0.95
IntDictMethod · 0.95
LongDictMethod · 0.95
loadLanguageMethod · 0.95
readMethod · 0.95
loadMethod · 0.95

Calls 5

createInputMethod · 0.95
printStackTraceMethod · 0.95
arraycopyMethod · 0.80
printlnMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected