MCPcopy
hub / github.com/arduino/Arduino / loadFromResource

Method loadFromResource

app/src/processing/app/Theme.java:637–639  ·  view source on GitHub ↗

Loads the supplied PreferencesMap from the specified resource, recursively loading parent resources such that entries are loaded in order of priority (lowest first). @param map preference map to populate @param name name of resource to load

(PreferencesMap map, String name)

Source from the content-addressed store, hash-verified

635 * @param name name of resource to load
636 */
637 static public PreferencesMap loadFromResource(PreferencesMap map, String name) throws IOException {
638 return loadFromResource(map, getThemeResource(name));
639 }
640
641 static private PreferencesMap loadFromResource(PreferencesMap map, Resource resource) throws IOException {
642 if (resource != null) {

Callers 1

initMethod · 0.95

Calls 4

getThemeResourceMethod · 0.95
getParentMethod · 0.80
getInputStreamMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected