Changeset 31045 for other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/JSONClusterFileIO.java
- Timestamp:
- 2016-11-02T21:34:47+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/JSONClusterFileIO.java
r30996 r31045 9 9 protected static JSONObject readJSONFile(String filename) 10 10 { 11 StringBuilder sb = new StringBuilder();12 11 JSONObject json_obj = null; 12 13 13 try { 14 14 StringBuilder sb = new StringBuilder(); 15 15 16 String str; 16 17 BufferedReader br = ClusterFileIO.getBufferedReaderForCompressedFile(filename); … … 20 21 21 22 br.close(); 23 24 json_obj = new JSONObject(sb.toString()); 22 25 } 23 26 catch (Exception e) { 24 27 e.printStackTrace(); 25 28 } 26 27 JSONObject json_obj = new JSONObject(sb.toString());28 29 29 30 30 return json_obj;
Note:
See TracChangeset
for help on using the changeset viewer.