Method
dumpFile
(String file, String data)
Source from the content-addressed store, hash-verified
| 605 | } |
| 606 | |
| 607 | private static final void dumpFile(String file, String data) { |
| 608 | try { |
| 609 | PrintStream fout = new PrintStream(new FileOutputStream(file)); |
| 610 | fout.print(data); |
| 611 | fout.close(); |
| 612 | fout = null; |
| 613 | } catch(Exception ex) { |
| 614 | System.out.println("[Error] Can't Create File:" + file); |
| 615 | System.out.println(ex); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | private static final int strcmp(String src1, String src2) { |
| 620 | return src1.compareTo(src2); |
Tested by
no test coverage detected