* @return Tag data read from the file
* @throws IOException If tags can't be read of file can't be accessed
*/
TrackData scanFile(File file) throws IOException {
String separatorCharacters = getConfiguration().getStringParameter("separatorCharacters");
TagReader[] tagReaders = {new FlacTagReader(separatorCharacters), new Mp3TagReader(separatorCharacters)};
for (TagReader tagReader : tagReaders) {
TrackData data = tagReader.getTrackData(file);
if (data != null) {
data.setLastModified(file.lastModified());
return data;