/** * If the argument is the <i>uri</i> parameter, then read the specified URL and parse the data * contained in it. * * @param attribute The attribute that changed. * @exception IllegalActionException If the URL cannot be read or if the data is malformed. */ public void attributeChanged(Attribute attribute) throws IllegalActionException { // The superclass does some handling of the url attribute. super.attributeChanged(attribute); if (attribute == uri) { try { URL urlToRead = uri.getURL(); if (urlToRead != null) { read(urlToRead); } } catch (IOException ex) { throw new IllegalActionException(this, null, ex, "Failed to read data: " + ex.getMessage()); } } }