MCPcopy Create free account
hub / github.com/RipMeApp/ripme / fromJSON

Method fromJSON

src/main/java/com/rarchives/ripme/ui/History.java:93–99  ·  view source on GitHub ↗
(JSONArray jsonArray)

Source from the content-addressed store, hash-verified

91 }
92
93 private void fromJSON(JSONArray jsonArray) {
94 JSONObject json;
95 for (int i = 0; i < jsonArray.length(); i++) {
96 json = jsonArray.getJSONObject(i);
97 list.add(new HistoryEntry().fromJSON(json));
98 }
99 }
100
101 public void fromFile(String filename) throws IOException {
102 try (InputStream is = new FileInputStream(filename)) {

Callers 1

fromFileMethod · 0.95

Calls 1

addMethod · 0.80

Tested by

no test coverage detected