@Override public String[] getSeriesUsedFiles(boolean noPixels) { FormatTools.assertId(currentId, true, 1); final List<String> files = new ArrayList<String>(); files.add(currentId); Location currentFile = new Location(currentId).getAbsoluteFile(); Location parent = currentFile.getParentFile(); if (parent != null && getSeries() < imageNames.length && imageNames[getSeries()] != null) { // look for an XML file with the same name as this series Location xmlFile = new Location(parent, imageNames[getSeries()].trim() + ".xml"); if (xmlFile.exists()) { files.add(xmlFile.getAbsolutePath()); } Location logoFile = new Location(parent, LOGO_FILE); if (logoFile.exists()) { files.add(logoFile.getAbsolutePath()); } Location stylesheetFile = new Location(parent, STYLESHEET_FILE); if (stylesheetFile.exists()) { files.add(stylesheetFile.getAbsolutePath()); } } return files.toArray(new String[files.size()]); }
@Override public String[] getSeriesUsedFiles(boolean noPixels) { FormatTools.assertId(currentId, true, 1); final List<String> files = new ArrayList<String>(); files.add(currentId); Location currentFile = new Location(currentId).getAbsoluteFile(); Location parent = currentFile.getParentFile(); if (parent != null && getSeries() < imageNames.length && imageNames[getSeries()] != null) { // look for an XML file with the same name as this series Location xmlFile = new Location(parent, imageNames[getSeries()].trim() + ".xml"); if (xmlFile.exists()) { files.add(xmlFile.getAbsolutePath()); } Location logoFile = new Location(parent, LOGO_FILE); if (logoFile.exists()) { files.add(logoFile.getAbsolutePath()); } Location stylesheetFile = new Location(parent, STYLESHEET_FILE); if (stylesheetFile.exists()) { files.add(stylesheetFile.getAbsolutePath()); } } return files.toArray(new String[files.size()]); }