Package com.biglybt.pif.torrent
Interface TorrentAnnounceURLList
-
- All Known Implementing Classes:
TorrentAnnounceURLListImpl
public interface TorrentAnnounceURLList
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.void
setSets(TorrentAnnounceURLListSet[] sets)
-
-
-
Method Detail
-
getSets
TorrentAnnounceURLListSet[] getSets()
-
setSets
void setSets(TorrentAnnounceURLListSet[] sets)
-
create
TorrentAnnounceURLListSet create(java.net.URL[] urls)
create a new set. This is NOT added to the list, you have to manually add it afterwards- Parameters:
urls
-- Returns:
-
addSet
void addSet(java.net.URL[] urls)
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- Parameters:
urls
-
-
insertSetAtFront
void insertSetAtFront(java.net.URL[] urls)
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- Parameters:
urls
-
-
-