\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
});\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