ImageDataFactory { public static boolean isSupportedType(byte[] source) { if (source == null) { return false; } ImageType imageType = ImageTypeDetector.detectImageType(source); return isSupportedType(imageType); } private  ImageDataFactory(); static ImageData create(byte[] bytes, boolean recoverImage); static ImageData create(byte[] bytes); static ImageData create(URL url, boolean recoverImage); static ImageData create(URL url); static ImageData create(String filename, boolean recoverImage); static ImageData create(String filename); static ImageData create(int width, int height, boolean reverseBits,
                                   int typeCCITT, int parameters, byte[] data,
                                   int[] transparency); static ImageData create(int width, int height, int components,
                                   int bpc, byte[] data, int[] transparency); static ImageData create(java.awt.Image image, java.awt.Color color); static ImageData create(java.awt.Image image, java.awt.Color color, boolean forceBW); static ImageData createBmp(URL url, boolean noHeader); @Deprecated static ImageData createBmp(URL url, boolean noHeader, int size); static ImageData createBmp(byte[] bytes, boolean noHeader); @Deprecated static ImageData createBmp(byte[] bytes, boolean noHeader, int size); static GifImageData createGif(byte[] bytes); static ImageData createGifFrame(URL url, int frame); static ImageData createGifFrame(byte[] bytes, int frame); static List<ImageData> createGifFrames(byte[] bytes, int[] frameNumbers); static List<ImageData> createGifFrames(URL url, int[] frameNumbers); static List<ImageData> createGifFrames(byte[] bytes); static List<ImageData> createGifFrames(URL url); static ImageData createJbig2(URL url, int page); static ImageData createJbig2(byte[] bytes, int page); static ImageData createJpeg(URL url); static ImageData createJpeg(byte[] bytes); static ImageData createJpeg2000(URL url); static ImageData createJpeg2000(byte[] bytes); static ImageData createPng(URL url); static ImageData createPng(byte[] bytes); static ImageData createTiff(URL url, boolean recoverFromImageError, int page, boolean direct); static ImageData createTiff(byte[] bytes, boolean recoverFromImageError, int page, boolean direct); static ImageData createRawImage(byte[] bytes); static boolean isSupportedType(byte[] source); static boolean isSupportedType(URL source); static boolean isSupportedType(ImageType imageType);  }
@Test public void testImageTypeSupportWmfType() { Assert.assertFalse(ImageDataFactory.isSupportedType(ImageType.WMF)); }