Package org.archive.wayback.resourcestore.resourcefile

Examples of org.archive.wayback.resourcestore.resourcefile.ResourceFileList$ResourceFileLocationAdapter


    String name = update.getName();
    File current = new File(stateDir,name);
    if(!current.isFile()) {
      current.createNewFile();
    }
    ResourceFileList updateFL = ResourceFileList.load(update);
    ResourceFileList currentFL = ResourceFileList.load(current);
   
    boolean updated = false;
   
    ResourceFileList removedFiles = currentFL.subtract(updateFL);
    ResourceFileList addedFiles = updateFL.subtract(currentFL);
   
    Iterator<ResourceFileLocation> addedItr = addedFiles.iterator();
    Iterator<ResourceFileLocation> removedItr = removedFiles.iterator();
    while(addedItr.hasNext()) {
      updated = true;
      ResourceFileLocation location = addedItr.next();
      LOGGER.info("Added " + location.getName() + " " + location.getUrl());
View Full Code Here

TOP

Related Classes of org.archive.wayback.resourcestore.resourcefile.ResourceFileList$ResourceFileLocationAdapter

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.