Class SamStreams


  • public class SamStreams
    extends Object
    Utilities related to processing of InputStreams encoding SAM data
    • Constructor Detail

      • SamStreams

        public SamStreams()
    • Method Detail

      • isBAMFile

        public static boolean isBAMFile​(InputStream stream)
                                 throws IOException
        Parameters:
        stream - stream.markSupported() must be true
        Returns:
        true if this looks like a BAM file.
        Throws:
        IOException
      • isGzippedSAMFile

        public static boolean isGzippedSAMFile​(InputStream stream)
        Checks whether the file is a gzipped sam file. Returns true if it is and false otherwise.
      • sourceLikeBam

        public static boolean sourceLikeBam​(SeekableStream strm)
      • sourceLikeCram

        public static boolean sourceLikeCram​(SeekableStream strm)