*/
package jalview.io;
-import jalview.jsdev.Constants;
import jalview.jsdev.GenericFileAdapter;
import java.io.IOException;
// if (data.matches("<(\"[^\"]*\"|'[^']*'|[^'\">])*>"))
if (data.matches("<HTML(\"[^\"]*\"|'[^']*'|[^'\">])*>")) // BH was (?i)rnaml, but JavaScript regex does not support (?i); data is already upper case
{
- reply = Constants.Html_FILE_DESC;
+ reply = GenericFileAdapter.Html_FILE_DESC;
break;
}
if (data.indexOf("{\"") > -1)
{
- reply = Constants.JSON_FILE_DESC;
+ reply = GenericFileAdapter.JSON_FILE_DESC;
break;
}
if ((data.length() < 1) || (data.indexOf("#") == 0))
}
else if (data.matches("\\s*\\d+\\s+\\d+\\s*"))
{
- reply = Constants.Phylip_FILE_DESC;
+ reply = GenericFileAdapter.Phylip_FILE_DESC;
break;
}