public class CramContainerIterator extends java.lang.Object implements java.util.Iterator<Container>
InputStream
.Constructor and Description |
---|
CramContainerIterator(java.io.InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected Container |
containerFromStream(Version cramVersion,
CountingInputStream countingStream)
Consume the entirety of the next container from the stream.
|
CramHeader |
getCramHeader() |
boolean |
hasNext() |
Container |
next() |
void |
remove() |
public CramContainerIterator(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException
protected Container containerFromStream(Version cramVersion, CountingInputStream countingStream) throws java.io.IOException
cramVersion
- countingStream
- java.io.IOException
public boolean hasNext()
hasNext
in interface java.util.Iterator<Container>
public void remove()
remove
in interface java.util.Iterator<Container>
public CramHeader getCramHeader()
public void close()