+ if (checkPIR)
+ {
+ String dta=null;
+ if (!starterm)
+ {
+ do {
+ try {
+ dta = source.nextLine();
+ } catch(IOException ex) {};
+ if (dta!=null && dta.indexOf("*")>-1)
+ {
+ starterm = true;
+ }
+ } while (dta!=null && !starterm);
+ }
+ if (starterm)
+ {
+ reply="PIR";
+ break;
+ } else {
+ reply="FASTA"; // probably a bad choice!
+ }
+ }
+ // read as a FASTA (probably)