package org.forester.archaeopteryx.tools;
+import java.awt.color.CMMException;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.MalformedURLException;
_tp = tp;
}
+ @Override
+ public void run() {
+ load();
+ }
+
private void load() {
Hashtable<String, BufferedImage> image_map = null;
if ( _tp.getImageMap() != null ) {
bi = ImageIO.read( uri.getValue().toURL() );
}
catch ( final MalformedURLException e ) {
- AptxUtil.printWarningMessage( Constants.PRG_NAME, "\"" + uri.getValue()
- + "\": Malformed URL Exception: " + e.getLocalizedMessage() );
+ AptxUtil.printWarningMessage( Constants.PRG_NAME,
+ "could not load image from \"" + uri.getValue()
+ + "\": Malformed URL Exception: "
+ + e.getLocalizedMessage() );
}
catch ( final IOException e ) {
- AptxUtil.printWarningMessage( Constants.PRG_NAME, "\"" + uri.getValue()
- + "\": IO Exception: " + e.getLocalizedMessage() );
+ AptxUtil.printWarningMessage( Constants.PRG_NAME,
+ "could not load image from \"" + uri.getValue()
+ + "\": IO Exception: " + e.getLocalizedMessage() );
+ }
+ catch ( final CMMException e ) {
+ AptxUtil.printWarningMessage( Constants.PRG_NAME,
+ "could not load image from \"" + uri.getValue()
+ + "\": CMMException: " + e.getLocalizedMessage() );
}
if ( bi != null ) {
image_map.put( uri_str, bi );
}
}
}
-
- @Override
- public void run() {
- load();
- }
}