@Override public List<CoreMetadata> getCoreMetadataList() { // Only used for determining the object type. List<CoreMetadata> oldcore = helper.getCoreMetadataList(); List<CoreMetadata> newcore = new ArrayList<CoreMetadata>(); for (int s=0; s<oldcore.size(); s++) { CoreMetadata newMeta = oldcore.get(s).clone(this, s); newMeta.resolutionCount = oldcore.get(s).resolutionCount; newcore.add(newMeta); } return newcore; }
@Override public List<CoreMetadata> getCoreMetadataList() { // Only used for determining the object type. List<CoreMetadata> oldcore = helper.getCoreMetadataList(); List<CoreMetadata> newcore = new ArrayList<CoreMetadata>(); for (int s=0; s<oldcore.size(); s++) { CoreMetadata newMeta = oldcore.get(s).clone(this, s); newMeta.resolutionCount = oldcore.get(s).resolutionCount; newcore.add(newMeta); } return newcore; }
@Override protected void initFile(String id) throws FormatException, IOException { // read the pattern from the file // the file should just contain a single line with the relative or // absolute file pattern currentId = new Location(id).getAbsolutePath(); String pattern = DataTools.readFile(id).trim(); String dir = new Location(id).getAbsoluteFile().getParent(); if (new Location(pattern).getParent() == null) { pattern = dir + File.separator + pattern; } helper.setUsingPatternIds(true); helper.setCanChangePattern(false); helper.setId(pattern); core = helper.getCoreMetadataList(); }
@Override protected void initFile(String id) throws FormatException, IOException { // read the pattern from the file // the file should just contain a single line with the relative or // absolute file pattern currentId = new Location(id).getAbsolutePath(); String pattern = DataTools.readFile(id).trim(); String dir = new Location(id).getAbsoluteFile().getParent(); if (new Location(pattern).getParent() == null) { pattern = dir + File.separator + pattern; } helper.setUsingPatternIds(true); helper.setCanChangePattern(false); helper.setId(pattern); core = helper.getCoreMetadataList(); }