in progress
[jalview.git] / forester / java / src / org / forester / io / parsers / FastaParser.java
index 5f42df8..348bec4 100644 (file)
@@ -22,7 +22,7 @@
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 //
 // Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
 
 package org.forester.io.parsers;
 
@@ -68,6 +68,10 @@ public class FastaParser {
         }
     }
 
+    static public boolean isLikelyFasta( final File f ) throws IOException {
+        return isLikelyFasta( new FileInputStream( f ) );
+    }
+
     static public boolean isLikelyFasta( final InputStream is ) throws IOException {
         final BufferedReader reader = new BufferedReader( new InputStreamReader( is, "UTF-8" ) );
         String line = null;