jnet file is 1 to 1 mapping
[jalview.git] / src / jalview / io / PfamFile.java
index ec52bac..bbd441c 100755 (executable)
@@ -1,6 +1,6 @@
 /*\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
@@ -32,11 +32,6 @@ public class PfamFile
   {\r
   }\r
 \r
-  public PfamFile(String inStr)\r
-  {\r
-    super(inStr);\r
-  }\r
-\r
   public PfamFile(String inFile, String type)\r
       throws IOException\r
   {\r
@@ -48,8 +43,7 @@ public class PfamFile
     super.initData();\r
   }\r
 \r
-  public void parse()\r
-      throws IOException\r
+  public void parse() throws IOException\r
   {\r
     int i = 0;\r
     String line;\r
@@ -118,8 +112,9 @@ public class PfamFile
 \r
         if (!isValidProteinSequence(newSeq.getSequence()))\r
         {\r
-          throw new IOException(\r
-              "Not a valid protein sequence - (PFAM input)");\r
+          throw new IOException(AppletFormatAdapter.INVALID_CHARACTERS\r
+                                +" : "+ newSeq.getName()\r
+                                +" : "+invalidCharacter);\r
         }\r
       }\r
       else\r