Package barrysoft.twinkle

Examples of barrysoft.twinkle.UpdateException


    SyndFeed feed;
   
    try {
      feed = sfi.build(new XmlReader(feedUrl));
    } catch (IllegalArgumentException e) {
      throw new UpdateException("Unknown type of update feed", e);
    } catch (FeedException e) {
      throw new UpdateException("Error while parsing update feed", e);
    } catch (IOException e) {
      throw new UpdateException("Can't fetch update feed", e);
    }
   
    return feed;
  }
View Full Code Here


      op.setDescription(entry.getDescription().getValue());
   
    try {
      op.setReleaseNotesLink(new URL(spk.getReleaseNotesLink()));
    } catch (MalformedURLException e) {
      throw new UpdateException("Can't parse release note URL", e);
    }
   
    convertSparkleEnclosures(entry, op);
   
    return op;
View Full Code Here

    SparkleEnclosure senclosure = spk.getEnclosures().get(0);
   
    try {
      targetOperation.setDownloadUrl(new URL(enclosure.getUrl()));
    } catch (MalformedURLException e1) {
      throw new UpdateException("Can't parse download url", e1);
    }
   
    targetOperation.setDownloadSize(enclosure.getLength());
    targetOperation.setDsaSignature(senclosure.getDsaSignature());
    targetOperation.setMd5Sum(senclosure.getMd5Sum());
View Full Code Here

TOP

Related Classes of barrysoft.twinkle.UpdateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.