/** * Perform BioFormats {@link ReaderWrapper#setId(String)} for this file. * @param reader the BioFormats reader upon which to operate * @throws FormatException passed up from {@link ReaderWrapper#setId(String)} * @throws IOException passed up from {@link ReaderWrapper#setId(String)} */ public void bfSetId(ReaderWrapper reader) throws FormatException, IOException { reader.setId(file.getPath()); }
@Override public void setId(String id) throws FormatException, IOException { String oldFile = getCurrentFile(); super.setId(id); if (!id.equals(oldFile) || core == null || core.size() != reader.getCoreMetadataList().size()) { // NB: Create our own copy of the CoreMetadata, // which we can manipulate safely. List<CoreMetadata> oldcore = reader.getCoreMetadataList(); core = new ArrayList<CoreMetadata>(); for (int s=0; s<oldcore.size(); s++) { SwappableMetadata swappable = new SwappableMetadata(reader, s); swappable.resolutionCount = oldcore.get(s).resolutionCount; core.add(swappable); } } }
@Override public void setId(String id) throws FormatException, IOException { String oldFile = getCurrentFile(); super.setId(id); if (!id.equals(oldFile) || core == null || core.size() != reader.getCoreMetadataList().size()) { // NB: Create our own copy of the CoreMetadata, // which we can manipulate safely. List<CoreMetadata> oldcore = reader.getCoreMetadataList(); core = new ArrayList<CoreMetadata>(); for (int s=0; s<oldcore.size(); s++) { SwappableMetadata swappable = new SwappableMetadata(reader, s); swappable.resolutionCount = oldcore.get(s).resolutionCount; core.add(swappable); } } }
@Override public void setId(String id) throws FormatException, IOException { super.setId(id); lutLength = getLookupTableComponentCount(); MetadataStore store = getMetadataStore(); MetadataTools.populatePixelsOnly(store, this); }
@Override public void setId(String id) throws FormatException, IOException { super.setId(id); lutLength = getLookupTableComponentCount(); MetadataStore store = getMetadataStore(); MetadataTools.populatePixelsOnly(store, this); }
@Override public void setId(String id) throws FormatException, IOException { super.setId(id);
@Override public void setId(String id) throws FormatException, IOException { super.setId(id);
@Override public void setId(String id) throws FormatException, IOException { super.setId(id);
@Override public void setId(String id) throws FormatException, IOException { super.setId(id);