*/
public class IdentifyFile
{
+ public static final String GFF3File = "GFF v2 or v3";
+
/**
* Identify a datasource's file content.
*
}
data = data.toUpperCase();
- if ((data.indexOf("# STOCKHOLM") > -1))
+ if (data.startsWith("##GFF-VERSION"))
+ {
+ reply = GFF3File;
+ break;
+ }
+ if (data.indexOf("# STOCKHOLM") > -1)
{
reply = "STH";
break;