Ignore:
Timestamp:
Mar 24, 2013, 5:09:44 PM (12 years ago)
Author:
alloc
Message:

HTTP File Downloader lib - import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/installer2/src/net/oni2/aeinstaller/backend/depot/DepotManager.java

    r708 r741  
    2424import net.oni2.aeinstaller.backend.depot.model.TaxonomyTerm;
    2525import net.oni2.aeinstaller.backend.depot.model.TaxonomyVocabulary;
    26 import net.oni2.aeinstaller.backend.network.FileDownloader;
     26import net.oni2.httpfiledownloader.FileDownloader;
    2727
    2828import org.apache.http.HttpResponse;
     
    7373                                        + (new Date().getTime() / 1000), zipName);
    7474                        fd.start();
    75                         while (fd.getState() != net.oni2.aeinstaller.backend.network.FileDownloader.EState.FINISHED) {
     75                        while (fd.getState() != FileDownloader.EState.FINISHED) {
    7676                                Thread.sleep(50);
    7777                        }
     
    318318        }
    319319
    320         /**
    321          * Print stats about nodes and files
    322          */
    323         public void printStats() {
    324                 System.out.println("Nodes by type:");
    325                 for (String t : nodesByType.keySet()) {
    326                         System.out.println("  " + t + ": " + nodesByType.get(t).size());
    327                 }
    328 
    329                 System.out.println("Files: " + files.size());
    330         }
    331 
    332320        private static XStream getXStream() {
    333321                XStream xs = new XStream(new StaxDriver());
Note: See TracChangeset for help on using the changeset viewer.