Examples of IOManagerAsynch


Examples of net.dzzd.utils.io.IOManagerAsynch

   {
     //LOAD 3DS FILE
    this.setAction(IProgressListener.ACTION_FILE_DOWNLOAD);
    ProgressListener pl=new ProgressListener();
       
    IOManagerAsynch aLoader = new IOManagerAsynch();
    aLoader.downloadData(this.baseURL+this.fileName, getClass(), null, pl, false);
    while(aLoader.running || !pl.getFinished())
    {
      this.setProgress((50*(pl.getProgress())/pl.getMaximumProgress()));
      try
      {
        Thread.sleep(5);       
      }
      catch(InterruptedException ie)
      {
        pl.setFinished(true);
        pl.setError(true);
        return;
      }
    }
   
    this.data=aLoader.getData();
    if(pl.getError() || this.data==null)
    {
      this.setError(true);
      this.setFinished(true);
      return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.