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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected ContainercontainerFromStream(CountingInputStream countingStream) Consume the entirety of the next container from the stream.booleanhasNext()next()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- theCountingInputStreamto 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-