Methods Summary |
---|
public java.lang.Object | getAdditionalProperty(java.lang.String name)Access to top-level properties in the torrent
|
public java.net.URL | getAnnounceURL()
|
public TorrentAnnounceURLList | getAnnounceURLList()get the announce list for multi-tracker torrents. Will always be present but
may contain 0 sets which means that this is not a multi-tracker torrent
|
public java.lang.String | getComment()
|
public java.lang.String | getCreatedBy()
|
public long | getCreationDate()
|
public java.lang.String | getEncoding()
|
public TorrentFile[] | getFiles()
|
public byte[] | getHash()
|
public java.net.URL | getMagnetURI()Gets the magnet URI for the torrent - throws exception if not available
|
public java.util.Map | getMapProperty(java.lang.String name)Gets a previously set map value
|
public java.lang.String | getName()
|
public long | getPieceCount()
|
public long | getPieceSize()
|
public byte[][] | getPieces()
|
public java.lang.String | getPluginStringProperty(java.lang.String name)Get a property specific to this plugin
|
public long | getSize()If size is 0 then this is an "external" torrent and we only know its hash (and name
constructed from hash). e.g. we don't know file details
|
public boolean | isComplete()
|
public boolean | isDecentralised()A decentralised torrent uses the DHT only as a "tracker"
|
public boolean | isDecentralisedBackupEnabled()Decentralised backup permits the DHT to be used as a tracker when the
"real" tracker is unavailable
|
public boolean | isDecentralisedBackupRequested()
|
public boolean | isPrivate()A private torrent is either explicitly private via info/private or
has decentralised backup disabled and peer exchange disabled
|
public org.gudy.azureus2.plugins.torrent.Torrent | removeAdditionalProperties()Removal all non-standard properties (excluding plugin-properties below)
|
public void | save()Saves the torrent to its persistent location
|
public void | setAnnounceURL(java.net.URL url)
|
public void | setComment(java.lang.String comment)
|
public void | setComplete(java.io.File data_dir)sets the torrent complete - i.e. ready for seeding. Doing this avoids
a recheck on torrent addition
|
public void | setDecentralisedBackupRequested(boolean requested)By default torrents with OK trackers are not tracked in the DHT. This allows a specific
torrent to be marked so that it will be
|
public void | setDefaultEncoding()
|
public void | setEncoding(java.lang.String encoding)
|
public void | setMapProperty(java.lang.String name, java.util.Map value)Sets a map property in the torrent, retrievable via getMapProperty
|
public void | setPluginStringProperty(java.lang.String name, java.lang.String value)Set a property specific to this plugin
|
public void | setPrivate(boolean priv)
|
public boolean | wasCreatedByUs()
|
public byte[] | writeToBEncodedData()
|
public void | writeToFile(java.io.File file)
|
public java.util.Map | writeToMap()
|