JII provides currently two interfaces:
All available implementations (wrappers) can be found in the core package. Each wrapper implements one or both interfaces above.
Example:
IDimensionProvider dp = new SimpleImageInfoWrapper();
dp.set(new File("/dir/file.jpg"));
Dimension dim = dp.getDimension();
System.out.println(String.format("Dimension: %dx%d", dim.height, dim.width));The de.thischwa.jii.IResolutionProvider works in the same way.