code: public static void checkBamOrCramFile(InputStream is, String bamFileName) throws IOException {
          checkBamOrCramFile(is, bamFileName, true);
      }
docs: Check if the file is a sorted binary bam file.
  
  @param is          Bam InputStream
  @param bamFileName Bam FileName
  @throws IOException