private void moveToFirst() throws IOException {
  nextHeaderPosition=position;
  nextHeader=r.readLine();
  if (nextHeader != null) {
    position+=nextHeader.length() + endOfLineBytes;
    String aLine;
    while ((aLine=r.readLine()) != null) {
      if (aLine.startsWith(">")) {
        nextNextHeaderPosition=position;
        nextNextHeader=aLine;
        position+=aLine.length() + endOfLineBytes;
        break;
      }
 else {
        position+=aLine.length() + endOfLineBytes;
        parts.add(aLine);
      }
    }
    nextSequence=Basic.concatenateAndRemoveWhiteSpaces(parts);
    parts.clear();
  }
 else   close();
}

private void moveToFirst ( ) throws IOException { nextHeaderPosition = position ; nextHeader = r . readLine ( ) ; if ( nextHeader != null ) { position += nextHeader . length ( ) + endOfLineBytes ; String aLine ; while ( ( aLine = r . readLine ( ) ) != null ) { if ( aLine . startsWith ( ">" ) ) { nextNextHeaderPosition = position ; nextNextHeader = aLine ; position += aLine . length ( ) + endOfLineBytes ; break ; } else { position += aLine . length ( ) + endOfLineBytes ; parts . add ( aLine ) ; } } nextSequence = Basic . concatenateAndRemoveWhiteSpaces ( parts ) ; parts . clear ( ) ; } else close ( ) ; }
move to first fasta record
