Package htsjdk.samtools.cram.build
Class CramContainerIterator
java.lang.Object
htsjdk.samtools.cram.build.CramContainerIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<Container>
- Direct Known Subclasses:
CramContainerHeaderIterator
,CramSpanContainerIterator
An iterator of CRAM containers read from an
InputStream
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected Container
containerFromStream
(CountingInputStream countingStream) Consume the entirety of the next container from the stream.boolean
hasNext()
next()
void
remove()
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 Details
-
CramContainerIterator
-
-
Method Details
-
containerFromStream
Consume the entirety of the next container from the stream.- Parameters:
countingStream
- theCountingInputStream
to read from- Returns:
- The next Container from the stream.
- See Also:
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
getCramHeader
-
getSamFileHeader
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-