490491492493494495496497
public FormatFilter(String name) { this.name = name; } public boolean filter(Object provider) { ImageReaderWriterSpi spi = (ImageReaderWriterSpi) provider; return Arrays.asList(spi.getFormatNames()).contains(name); }
525526527528529530531532
public SuffixFilter(String suf) { this.suf = suf; } public boolean filter(Object provider) { ImageReaderWriterSpi spi = (ImageReaderWriterSpi) provider; return Arrays.asList(spi.getFileSuffixes()).contains(suf); }