MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / save

Method save

src/rnabloom/bloom/BloomFilter.java:113–124  ·  view source on GitHub ↗
(File desc, File bits)

Source from the content-addressed store, hash-verified

111 }
112
113 public void save(File desc, File bits) throws IOException {
114 FileWriter writer = new FileWriter(desc, false);
115
116 writer.write(LABEL_SIZE + LABEL_SEPARATOR + this.size + "\n" +
117 LABEL_NUM_HASH + LABEL_SEPARATOR + this.numHash + "\n" +
118 LABEL_FPR + LABEL_SEPARATOR + this.getFPR() + "\n");
119 writer.close();
120
121 FileOutputStream out = new FileOutputStream(bits, false);
122 this.bitArray.write(out);
123 out.close();
124 }
125
126 @Override
127 public void add(String key) {

Callers 1

saveGraphMethod · 0.45

Calls 3

getFPRMethod · 0.95
closeMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected