private void checkQualitySize ( String id , String sequence , String quality ) throws FileFormatException { if ( sequence . length ( ) != quality . length ( ) ) { throw new FileFormatException ( "Quality and Sequence lenghts are different in Fasta " + id ) ; } }
Check that the sequence and quality strings have the same length