Traverse a BAM file (the sole argument) and output the BGZF "virtual" positions (Pos) of all record-starts.
Traverse a BAM file (the sole argument) and output the BGZF "virtual" positions (Pos) of all record-starts.
If true, parse htsjdk.samtools.SAMRecords into memory while traversing, for minimal sanity-checking
If true, open/traverse the file using a java.nio.channels.FileChannel (default: java.io.InputStream).
If true, throw an IOException in case of an unexpected EOF; default: stop traversing, output only through end of last complete record, exit 0.