org.gudy.azureus2.pluginsimpl.local.torrent
Class TorrentAnnounceURLListImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.torrent.TorrentAnnounceURLListImpl
All Implemented Interfaces:
TorrentAnnounceURLList

public class TorrentAnnounceURLListImpl
extends java.lang.Object
implements TorrentAnnounceURLList


Field Summary
protected  TorrentImpl torrent
           
 
Constructor Summary
protected TorrentAnnounceURLListImpl(TorrentImpl _torrent)
           
 
Method Summary
 void addSet(java.net.URL[] urls)
          Adds a set to the torrent at the end of the list.
 TorrentAnnounceURLListSet create(java.net.URL[] urls)
          create a new set.
 TorrentAnnounceURLListSet[] getSets()
           
 void insertSetAtFront(java.net.URL[] urls)
          Adds a set to the torrent at the front of the list.
protected  boolean setAlreadyExists(java.net.URL[] urls)
           
 void setSets(TorrentAnnounceURLListSet[] sets)
           
protected  void updated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

torrent

protected TorrentImpl torrent
Constructor Detail

TorrentAnnounceURLListImpl

protected TorrentAnnounceURLListImpl(TorrentImpl _torrent)
Method Detail

getSets

public TorrentAnnounceURLListSet[] getSets()
Specified by:
getSets in interface TorrentAnnounceURLList

setSets

public void setSets(TorrentAnnounceURLListSet[] sets)
Specified by:
setSets in interface TorrentAnnounceURLList

create

public TorrentAnnounceURLListSet create(java.net.URL[] urls)
Description copied from interface: TorrentAnnounceURLList
create a new set. This is NOT added to the list, you have to manually add it afterwards

Specified by:
create in interface TorrentAnnounceURLList
Returns:

addSet

public void addSet(java.net.URL[] urls)
Description copied from interface: TorrentAnnounceURLList
Adds a set to the torrent at the end of the list. If the torrent currently has NO announcelist entries then the existing "announce-url" is also added to the set as the first entry. To avoid this behaviour manipulate the sets yourself and use setSets Duplicate set entries are ignored

Specified by:
addSet in interface TorrentAnnounceURLList

insertSetAtFront

public void insertSetAtFront(java.net.URL[] urls)
Description copied from interface: TorrentAnnounceURLList
Adds a set to the torrent at the front of the list. If the torrent currently has NO announcelist entries then the existing "announce-url" is also added to the set as the first entry. To avoid this behaviour manipulate the sets yourself and use setSets Duplicate set entries are ignored

Specified by:
insertSetAtFront in interface TorrentAnnounceURLList

setAlreadyExists

protected boolean setAlreadyExists(java.net.URL[] urls)

updated

protected void updated()