|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.torrentsniffer.torrent.TorrentImpl
Implementation of the Torrent.
Constructor Summary | |
TorrentImpl(java.lang.String file)
|
|
TorrentImpl(java.net.URL url)
|
Method Summary | |
java.lang.String |
getComment()
Get the comment. |
java.lang.String |
getCreatedBy()
Get the creator. |
java.util.Date |
getCreationDate()
Get the creation date. |
TorrentInfo |
getInfo()
Get the torrent info. |
byte[] |
getInfoHash()
Calculate the hash for the info data. |
Dictionary |
getRoot()
Returns the Java version of the bencoded torrent. |
TorrentState |
getState()
Retrieve the state of this torrent. |
Tracker |
getTracker()
Get the tracker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TorrentImpl(java.lang.String file) throws java.io.FileNotFoundException
file
-
java.io.FileNotFoundException
public TorrentImpl(java.net.URL url)
url
- Method Detail |
public Tracker getTracker()
Torrent
getTracker
in interface Torrent
public java.lang.String getComment()
Torrent
getComment
in interface Torrent
public java.util.Date getCreationDate()
Torrent
getCreationDate
in interface Torrent
public java.lang.String getCreatedBy()
Torrent
getCreatedBy
in interface Torrent
public TorrentInfo getInfo()
Torrent
getInfo
in interface Torrent
public TorrentState getState()
Torrent
getState
in interface Torrent
public byte[] getInfoHash()
public Dictionary getRoot()
Torrent
getRoot
in interface Torrent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |