{\r
if (count != 0)\r
{\r
+ if (!isValidProteinSequence(sb.toString()))\r
+ {\r
+ throw new IOException(AppletFormatAdapter.INVALID_CHARACTERS\r
+ +" : "+seq.getName()\r
+ +" : "+invalidCharacter);\r
+ }\r
+\r
seq.setSequence(sb.toString());\r
seqs.addElement(seq);\r
}\r
\r
if (count > 0)\r
{\r
- if (!isValidProteinSequence(sb.toString().toUpperCase()))\r
+ if (!isValidProteinSequence(sb.toString()))\r
{\r
- throw new IOException("Invalid protein sequence");\r
+ throw new IOException(AppletFormatAdapter.INVALID_CHARACTERS\r
+ +" : "+seq.getName()\r
+ +" : "+invalidCharacter);\r
}\r
\r
seq.setSequence(sb.toString());\r