Package de.scrum_master.util

Examples of de.scrum_master.util.FileDownloader


    throws IOException, NoSuchAlgorithmException, MD5MismatchException
  {
    String archiveName = book.downloadArchive.replaceFirst(".*/", "");
    File file = new File(downloadDirectory, archiveName);
    if (! file.exists())
      new FileDownloader(new URL(book.downloadArchive), file, new BigInteger(book.archiveMD5, 16)).download();
  }
View Full Code Here


      throw new IOException("cannot create directory '" + targetDirectory + "'");

    String imageName = book.unpackDirectory + File.separator + "cover.jpg";
    File file = new File(downloadDirectory, imageName);
    if (! file.exists())
      new FileDownloader(new URL(book.coverImage), file, null).download();
  }
View Full Code Here

    System.out.println("\nChecking book downloads and MD5 checksums:");
    for (String bookID : Book.books.keySet()) {
      Book book = Book.books.get(bookID);
      System.out.print("  " + bookID + " ... ");
      try {
        new FileDownloader(new URL(book.downloadArchive), null, new BigInteger(book.archiveMD5, 16)).download();
        System.out.println("OK");
      } catch (Exception e) {
        System.out.println("failed");
        e.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of de.scrum_master.util.FileDownloader

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.