*/
public class IdentifyFile
{
- public static final String FeaturesFile = "GFF or Jalview features";
-
/**
* Identify a datasource's file content.
*
// preserves original behaviour prior to version 2.3
}
+ public FileFormatI identify(AlignmentFileI file, boolean closeSource)
+ throws IOException
+ {
+ FileParse fp = new FileParse(file.getInFile(), file.getDataSourceType());
+ return identify(fp, closeSource);
+ }
+
/**
* Identify contents of source, closing it or resetting source to start
* afterwards.
.println("File Identification failed! - Empty file was read.");
throw new FileFormatException("EMPTY DATA FILE");
}
+ System.out.println("File format identified as " + reply.toString());
return reply;
}