Package com.aelitis.azureus.core.download

Examples of com.aelitis.azureus.core.download.DiskManagerFileInfoFile


      int file_index = ImportExportUtils.importInt( map, "file_index" );
     
      file = queue.lookupFile( dl_hash, file_index );
    }else{
   
      file = new DiskManagerFileInfoFile( new File( file_str ));
    }
   
    transcode_requirement  = ImportExportUtils.importInt( map, "trans_req", TranscodeTarget.TRANSCODE_UNKNOWN );
   
    auto_retry_enabled = ImportExportUtils.importBoolean( map, "ar_enable", true );
View Full Code Here


       
        // if we're not transcoding then always return the source even if doesn't exist
     
      if ( link_file.exists() || getBoolean( KEY_NO_XCODE )){
   
        return( new DiskManagerFileInfoFile( link_file ));
      }
    }
   
    // Debug.out( "Source file doesn't exist (hash=" + hash + ",link=" + link +"), returning cache file" );
   
    return( new DiskManagerFileInfoFile( getCacheFile()));
  }
View Full Code Here

   
    File  cache_file = getCacheFile();
   
    if ( cache_file.exists() && cache_file.length() > 0 ){
   
      return( new DiskManagerFileInfoFile( cache_file ));
    }
   
    if ( getBoolean( KEY_NO_XCODE )){
     
      DiskManagerFileInfo res = getSourceFile();
     
      if ( res instanceof DiskManagerFileInfoFile ){
       
        return( res );
       
      }else{
       
        try{
          return( new DiskManagerFileInfoDelegate( res ));
         
        }catch( Throwable e ){
         
          Debug.out( e );
         
          return( res );
        }
      }
    }
   
      // Debug.out( "Target file for " + cache_file + " doesn't exist" );
   
    return( new DiskManagerFileInfoFile( cache_file ));
  }
View Full Code Here

      try{
        DeviceManagerFactory.getSingleton().getTranscodeManager().getQueue().add(
          target,
          profile,
          new DiskManagerFileInfoFile( file ),
          transcode_requirement,
          false );
       
      }catch( Throwable e ){
       
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.download.DiskManagerFileInfoFile

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.