List of usage examples for javax.imageio.spi ImageReaderSpi getMIMETypes
public String[] getMIMETypes()
From source file:it.tidalwave.imageio.test.ImageReaderTestSupport.java
/******************************************************************************************************************* * * ******************************************************************************************************************/ protected void assertMIMETypes(final String extension, final String... mimeTypes) { final Iterator<ImageReader> i = ImageIO.getImageReadersBySuffix(extension); assertTrue(i.hasNext());/*from ww w . j a v a 2s .co m*/ final ImageReader ir = i.next(); assertNotNull(ir); assertFalse(i.hasNext()); final ImageReaderSpi provider = ir.getOriginatingProvider(); assertEquals(mimeTypes, provider.getMIMETypes()); }