Package org.jmule.core.edonkey

Examples of org.jmule.core.edonkey.ED2KFileLink


    this(fileHash, clientID,clientPort);
    this.resultType = resultType;
  }
 
  public ED2KFileLink getAsED2KLink() {
    return new ED2KFileLink(getFileName(),getFileSize(),getFileHash());
  }
View Full Code Here


      }
      public int getRowCount() {
        return ed2k_file_links_list.size();
      }
      public Object getValueAt(int row, int col) {
        ED2KFileLink file_link = ed2k_file_links_list.get(row);
        switch( col ) {
           case FILE_NAME : return file_link.getFileName();
           case FILE_SIZE : return file_link.getFileSize();
           case FILE_HASH : return file_link.getFileHash();
        }
        return null;
      }
View Full Code Here

    public void save() {
      for(TableItem item : getItems()) {
        if (item.getChecked()) {
          int id = indexOf(item);
          ED2KFileLink link = getData(id);
          if (sharing_manager.hasFile(link.getFileHash())) continue;
          try {
            download_manager.addDownload(link);
          } catch (DownloadManagerException e) {
            e.printStackTrace();
          }
View Full Code Here

  public int getCompletedSources() {
    return partStatus.getCompletedSources();
  }

  public ED2KFileLink getED2KLink() {
    return new ED2KFileLink(getSharingName(), getFileSize(), getFileHash());
  }
View Full Code Here

    notifyDownloadAdded(fileLink.getFileHash());
  }
 
  public void addDownload(String ed2kLinkAsString) throws DownloadManagerException {
    try {
      ED2KFileLink ed2k_file_link = new ED2KFileLink( ed2kLinkAsString );
      this.addDownload( ed2k_file_link );
    }catch( Throwable cause ) {
      throw new DownloadManagerException( cause );
    }
  }
View Full Code Here

    }
  }

  public void addAndStartSilentDownload(String ed2kLinkAsString) {
    try {
      this.addAndStartSilentDownload(new ED2KFileLink(ed2kLinkAsString));
    }catch( Throwable cause ) {
      cause.printStackTrace();
    }
  }
View Full Code Here

    }
  }
 
  public DownloadManager addAndStartSilentDownloads(String edk2LinkAsString) {
    try {
      ed2k_links_add_helper.add(new ED2KFileLink( edk2LinkAsString ) );
    }catch(Throwable cause) {
      cause.printStackTrace();
    }
    return this;
  }
View Full Code Here

    }
    return FileQuality.NOTRATED;
  }
 
  public ED2KFileLink getED2KLink() {
    return new ED2KFileLink(getSharingName(),length(),getFileHash());
  }
View Full Code Here

TOP

Related Classes of org.jmule.core.edonkey.ED2KFileLink

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.