{
return dataName;
}
+ /**
+ * set the (human readable) name or URI for this datasource
+ * @param dataname
+ */
+ protected void setDataName(String dataname) {
+ dataName = dataname;
+ }
+
public Reader getReader() throws IOException
{
}
return null;
}
+
+ public static String checkProtocol(String file)
+ {
+ String protocol = jalview.io.FormatAdapter.FILE;
+
+ if (file.indexOf("http:") > -1 || file.indexOf("file:") > -1)
+ {
+ protocol = jalview.io.FormatAdapter.URL;
+ }
+ return protocol;
+ }
}