@Override protected void fillMetadataPass5(MetadataStore store) throws FormatException, IOException { super.fillMetadataPass5(store); for (String name : tagsToParse) { int imageNum = getImageNumber(name, -1); parseTags(imageNum, name, store); } }
@Override protected void fillMetadataPass5(MetadataStore store) throws FormatException, IOException { super.fillMetadataPass5(store); for (String name : tagsToParse) { int imageNum = getImageNumber(name, -1); parseTags(imageNum, name, store); } }
@Override protected void countImages() { // count number of images files = (String[]) poi.getDocumentList().toArray(new String[0]); Arrays.sort(files, new Comparator<String>() { @Override public int compare(String o1, String o2) { final Integer n1 = getImageNumber(o1, -1); final Integer n2 = getImageNumber(o2, -1); return n1.compareTo(n2); } }); core.get(0).imageCount = 0; for (String file : files) { String uname = file.toUpperCase(); uname = uname.substring(uname.indexOf(File.separator) + 1); if (uname.endsWith("CONTENTS") && (uname.startsWith("IMAGE") || uname.indexOf("ITEM") != -1) && poi.getFileSize(file) > 1024) { int imageNumber = getImageNumber(file, 0); if (imageNumber >= getImageCount()) { core.get(0).imageCount++; } } } super.countImages(); coordinates = new int[getSeriesCount() * getImageCount()][4]; }
@Override protected void countImages() { // count number of images files = (String[]) poi.getDocumentList().toArray(new String[0]); Arrays.sort(files, new Comparator<String>() { @Override public int compare(String o1, String o2) { final Integer n1 = getImageNumber(o1, -1); final Integer n2 = getImageNumber(o2, -1); return n1.compareTo(n2); } }); core.get(0).imageCount = 0; for (String file : files) { String uname = file.toUpperCase(); uname = uname.substring(uname.indexOf(File.separator) + 1); if (uname.endsWith("CONTENTS") && (uname.startsWith("IMAGE") || uname.indexOf("ITEM") != -1) && poi.getFileSize(file) > 1024) { int imageNumber = getImageNumber(file, 0); if (imageNumber >= getImageCount()) { core.get(0).imageCount++; } } } super.countImages(); coordinates = new int[getSeriesCount() * getImageCount()][4]; }
int imageNum = getImageNumber(name, -1); if (imageNum == -1) { parseTags(imageNum, name, new DummyMetadata()); int imageNum = getImageNumber(name, -1); if (imageNum != -1) { try (RandomAccessInputStream s = poi.getDocumentStream(name)) { dirName.toUpperCase().indexOf("ITEM") != -1) int imageNum = getImageNumber(dirName, getImageCount() == 1 ? 0 : -1); if (imageNum == -1) continue;
int imageNum = getImageNumber(name, -1); if (imageNum == -1) { parseTags(imageNum, name, new DummyMetadata()); int imageNum = getImageNumber(name, -1); if (imageNum != -1) { try (RandomAccessInputStream s = poi.getDocumentStream(name)) { dirName.toUpperCase().indexOf("ITEM") != -1) int imageNum = getImageNumber(dirName, getImageCount() == 1 ? 0 : -1); if (imageNum == -1) continue;