return getVersionInfo(UPDATE_INFO_URL);
}
public VersionInfo getVersionInfo(String url) {
try {
XmlContentHandler handler = new XmlContentHandler();
XMLReader myReader = XMLReaderFactory.createXMLReader();
myReader.setContentHandler(handler);
myReader.parse(new InputSource(new URL(url).openStream()));
return handler.getVersionInfo();
} catch (SAXException e) {
if (debug) {
console.println("SAXException was thrown!");
e.printStackTrace();
}