void readNextContainer() { try { nextContainer = containerFromStream(cramHeader.getVersion(), countingInputStream); final long containerSizeInBytes = countingInputStream.getCount() - offset; nextContainer.offset = offset; offset += containerSizeInBytes; } catch (final IOException e) { throw new RuntimeException(e); } if (nextContainer.isEOF()) { eof = true; nextContainer = null; } }
void readNextContainer() { nextContainer = containerFromStream(cramHeader.getVersion(), countingInputStream); final long containerSizeInBytes = countingInputStream.getCount() - offset; nextContainer.offset = offset; offset += containerSizeInBytes; if (nextContainer.isEOF()) { eof = true; nextContainer = null; } }