\r
import java.io.File;\r
import java.io.FileNotFoundException;\r
+import java.io.InputStream;\r
import java.util.Iterator;\r
import java.util.Scanner;\r
\r
/**\r
* Header data can contain non-ASCII symbols and read in UTF8\r
* \r
- * @param input\r
+ * @param inputFile\r
* the file containing the list of FASTA formatted sequences to\r
* read from\r
* @throws FileNotFoundException\r
}\r
});\r
}\r
+\r
+ /**\r
+ * This class will not close the incoming stream! So the client should do\r
+ * so.\r
+ * \r
+ * @param inputStream\r
+ * @throws FileNotFoundException\r
+ */\r
+ public FastaReader(final InputStream inputStream)\r
+ throws FileNotFoundException {\r
+ input = new Scanner(inputStream);\r
+ input.useDelimiter("\\s*>");\r
+ }\r
/**\r
* {@inheritDoc}\r
* \r