[FIX] Adapted the sam/bam module to new stream modul.

where is this `isNewline` variable used?