Package htsjdk.samtools.cram.build
Class CramContainerIterator
- java.lang.Object
-
- htsjdk.samtools.cram.build.CramContainerIterator
-
- Direct Known Subclasses:
CramContainerHeaderIterator
public class CramContainerIterator extends Object implements Iterator<Container>
An iterator of CRAM containers read from anInputStream.
-
-
Constructor Summary
Constructors Constructor Description CramContainerIterator(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected ContainercontainerFromStream(Version cramVersion, CountingInputStream countingStream)Consume the entirety of the next container from the stream.CramHeadergetCramHeader()booleanhasNext()Containernext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
CramContainerIterator
public CramContainerIterator(InputStream inputStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
containerFromStream
protected Container containerFromStream(Version cramVersion, CountingInputStream countingStream) throws IOException
Consume the entirety of the next container from the stream.- Parameters:
cramVersion-countingStream-- Returns:
- The next Container from the stream.
- Throws:
IOException
-
getCramHeader
public CramHeader getCramHeader()
-
close
public void close()
-
-