-/**\r
- * This method must be implemented to parse the contents of the file.\r
- */\r
- public abstract void parse() throws IOException;\r
+ /**\r
+ * A general parser for ids.\r
+ *\r
+ * @String id Id to be parsed\r
+ */\r
+ Sequence parseId(String id)\r
+ {\r
+ Sequence seq = null;\r
+ id = id.trim();\r
+ int space = id.indexOf(" ");\r
+ if(space>-1)\r
+ {\r
+ seq = new Sequence(id.substring(0, space),"");\r
+ seq.setDescription(id.substring(space+1));\r
+ }\r
+ else\r
+ {\r
+ seq = new Sequence(id, "");\r
+ }\r
+\r
+ return seq;\r
+ }\r