|
|||||||||||
| 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.FileNotFoundExceptionpublic TorrentImpl(java.net.URL url)
url - | Method Detail |
public Tracker getTracker()
Torrent
getTracker in interface Torrentpublic java.lang.String getComment()
Torrent
getComment in interface Torrentpublic java.util.Date getCreationDate()
Torrent
getCreationDate in interface Torrentpublic java.lang.String getCreatedBy()
Torrent
getCreatedBy in interface Torrentpublic TorrentInfo getInfo()
Torrent
getInfo in interface Torrentpublic TorrentState getState()
Torrent
getState in interface Torrentpublic 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 | ||||||||||