*/
public class IdentifyFile
{
-
- public FileFormatI identify(Object file, DataSourceType protocol) throws FileFormatException
+
+ public FileFormatI identify(Object file, DataSourceType protocol)
+ throws FileFormatException
{
// BH 2018
- return (file instanceof File ? identify((File) file, protocol) : identify((String) file, protocol));
-
+ return (file instanceof File ? identify((File) file, protocol)
+ : identify((String) file, protocol));
+
}
public FileFormatI identify(File file, DataSourceType sourceType)
if (source.inFile != null)
{
String fileStr = source.inFile.getName();
- if (fileStr.contains(".jar")
- || fileStr.contains(".zip") || fileStr.contains(".jvp"))
+ if (fileStr.contains(".jar") || fileStr.contains(".zip")
+ || fileStr.contains(".jvp"))
{
// possibly a Jalview archive (but check further)
reply = FileFormat.Jalview;
}
}
-
}