* that contains a java.awt.Image object to the output port.
* @exception IllegalActionException If there's no director.
*/
public void fire() throws IllegalActionException {
super.fire();
StringToken urlToken = (StringToken) input.get(0);
try {
URL url = new URL(urlToken.stringValue());
Image image = new ImageIcon(url).getImage();
output.send(0, new AWTImageToken(image));
} catch (MalformedURLException ex) {
throw new IllegalActionException("'" + urlToken.stringValue()
+ "' is malformed: " + ex);
}
}