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

Method next

src/rnabloom/io/NucleotideBitsReader.java:38–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 @Override
39 public synchronized String next() throws IOException {
40 if (fin.read(seqLenBytes) > 0) {
41 int seqLen = fourBytesToInt(seqLenBytes);
42 byte[] seqBytes = new byte[seqLenToNumBytes(seqLen)];
43 if (fin.read(seqBytes) > 0) {
44 return bitsToSeq(seqBytes, seqLen);
45 }
46 }
47
48 return null;
49 }
50
51 public void close() throws IOException {
52 fin.close();

Callers 2

runMethod · 0.95
mainMethod · 0.95

Calls 4

fourBytesToIntMethod · 0.80
seqLenToNumBytesMethod · 0.80
bitsToSeqMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected