/*\r
* Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
*\r
* This program is free software; you can redistribute it and/or\r
* modify it under the terms of the GNU General Public License\r
{\r
}\r
\r
- public ClustalFile(String inStr)\r
- {\r
- super(inStr);\r
- }\r
-\r
public ClustalFile(String inFile, String type)\r
throws IOException\r
{\r
super.initData();\r
}\r
\r
- public void parse()\r
+ public void parse() throws IOException\r
{\r
int i = 0;\r
boolean flag = false;\r
Sequence newSeq = parseId(headers.elementAt(i).toString());\r
newSeq.setSequence( seqhash.get(headers.elementAt(i).toString()).toString() );\r
\r
+ if (!isValidProteinSequence(newSeq.getSequence()))\r
+ {\r
+ throw new IOException(AppletFormatAdapter.INVALID_CHARACTERS\r
+ + " : " + newSeq.getName()\r
+ + " : " + invalidCharacter);\r
+ }\r
+\r
+\r
seqs.addElement(newSeq);\r
}\r
else\r