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

HTTP File Downloader lib - import

Location:
java/installer2/src/net/oni2/aeinstaller/backend
Files:
2 deleted
2 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());
  • java/installer2/src/net/oni2/aeinstaller/backend/packages/download/ModDownload.java

    r648 r741  
    88import net.oni2.aeinstaller.backend.Paths;
    99import net.oni2.aeinstaller.backend.packages.Package;
    10 import net.oni2.aeinstaller.backend.network.FileDownloadListener;
    11 import net.oni2.aeinstaller.backend.network.FileDownloader;
    12 import net.oni2.aeinstaller.backend.network.FileDownloader.EState;
     10import net.oni2.httpfiledownloader.FileDownloadListener;
     11import net.oni2.httpfiledownloader.FileDownloader;
     12import net.oni2.httpfiledownloader.FileDownloader.EState;
    1313import net.oni2.aeinstaller.backend.packages.unpack.UnpackListener;
    1414import net.oni2.aeinstaller.backend.packages.unpack.Unpacker;
Note: See TracChangeset for help on using the changeset viewer.