equal
deleted
inserted
replaced
585 } |
585 } |
586 if (formatClassName == null) { |
586 if (formatClassName == null) { |
587 throw new IllegalArgumentException("Unsupported format name"); |
587 throw new IllegalArgumentException("Unsupported format name"); |
588 } |
588 } |
589 try { |
589 try { |
590 Class cls = Class.forName(formatClassName, true, |
590 Class<?> cls = Class.forName(formatClassName, true, |
591 ClassLoader.getSystemClassLoader()); |
591 ClassLoader.getSystemClassLoader()); |
592 Method meth = cls.getMethod("getInstance"); |
592 Method meth = cls.getMethod("getInstance"); |
593 return (IIOMetadataFormat) meth.invoke(null); |
593 return (IIOMetadataFormat) meth.invoke(null); |
594 } catch (Exception e) { |
594 } catch (Exception e) { |
595 RuntimeException ex = |
595 RuntimeException ex = |