- Timestamp:
- 2020-01-31T21:50:34+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/src/org/greenstone/atea/MongoDBAccess.java
r33882 r33883 537 537 // newlines after every array element in the json: 538 538 String jsonStr = prettyPrintJson(doc.toJson()); 539 System.err.println(jsonStr);539 //System.err.println(jsonStr); 540 540 try { 541 541 writer.write(jsonStr + NEWLINE); … … 553 553 } 554 554 555 556 public void writeToFile(boolean append, String filename, AggregateIterable<Document> output) {557 558 // should only have one doc559 for (Document doc : output) {560 //System.out.println(doc);561 System.out.println(doc.toJson());562 }563 }564 565 555 566 556 /** https://stackoverflow.com/questions/19938153/do-i-need-to-explicitly-close-connection */
Note:
See TracChangeset
for help on using the changeset viewer.