Package com.aelitis.azureus.core.download

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


        public boolean
        canIPBeBlocked(
          String   ip,
          byte[]   torrent_hash)
        {
          EnhancedDownloadManager dm = dme.getEnhancedDownload( torrent_hash );
         
          if ( dm == null ){
           
            return( true );
          }
         
          if ( dm.isPlatform()){
           
            return( canBan( ip ));
          }
         
          return( true );
View Full Code Here


  private static PluginInterface piEmp;
 
  //private static Method methodIsExternalPlayerInstalled;

  public static boolean prepareForPlay(DownloadManager dm) {
    EnhancedDownloadManager edm = DownloadManagerEnhancer.getSingleton().getEnhancedDownload(
        dm);
 
    if (edm != null) {
 
      edm.setProgressiveMode(true);
 
      return (true);
    }
 
    return (false);
View Full Code Here

    if (torrent == null) {
      return false;
    }
    try {
      DownloadManagerEnhancer enhancer = DownloadManagerEnhancer.getSingleton();
      EnhancedDownloadManager edm = DownloadManagerEnhancer.getSingleton().getEnhancedDownload(
          torrent.getHash());
 
      if (edm == null) {
        return enhancer.isProgressiveAvailable()
            && PlatformTorrentUtils.isContentProgressive(torrent);
      }
 
      boolean complete = edm.getDownloadManager().isDownloadComplete(false);
      if (complete) {
        return true;
      }
 
      // not complete
      if (!edm.supportsProgressiveMode()) {
        return false;
      }
    } catch (TOTorrentException e) {
      return false;
    }
View Full Code Here

   
    org.gudy.azureus2.core3.disk.DiskManagerFileInfo  file;
   
    if ( file_index == -1 ){
     
      EnhancedDownloadManager edm = DownloadManagerEnhancer.getSingleton().getEnhancedDownload( dm );
     
      if ( edm == null ) {
       
        return( false );
      }
     
      file = edm.getPrimaryFile();
     
      file_index = file.getIndex();
     
    }else{
     
View Full Code Here

   */
  public static String getContentUrl(DownloadManager dmContent) {
    String contentPath;
    if (dmContent.isDownloadComplete(false)) {
      //use the file path if download is complete.
      EnhancedDownloadManager edm = DownloadManagerEnhancer.getSingleton().getEnhancedDownload(
          dmContent);
      File file;
      if (edm != null) {
        file = edm.getPrimaryFile().getFile(true);
      } else {
        file = new File(dmContent.getDownloadState().getPrimaryFile());
      }
      try {
        contentPath = file.toURL().toString();
View Full Code Here

TOP

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

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.