org.gudy.azureus2.pluginsimpl.local.sharing
Class ShareItemImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.sharing.ShareItemImpl
- All Implemented Interfaces:
- ShareItem
public class ShareItemImpl
- extends Object
- implements ShareItem
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resource
protected ShareResourceImpl resource
fingerprint
protected byte[] fingerprint
torrent
protected Torrent torrent
torrent_save_location
protected String torrent_save_location
ShareItemImpl
protected ShareItemImpl(ShareResourceImpl _resource,
byte[] _fingerprint,
Torrent _torrent)
throws ShareException
- Throws:
ShareException
ShareItemImpl
protected ShareItemImpl(ShareResourceImpl _resource,
byte[] _fingerprint,
String _save_location)
throws ShareException
- Throws:
ShareException
getTorrent
public Torrent getTorrent()
throws ShareException
- Specified by:
getTorrent
in interface ShareItem
- Throws:
ShareException
writeTorrent
protected void writeTorrent()
throws ShareException
- Throws:
ShareException
setTorrent
protected void setTorrent(Torrent _torrent)
getTorrentFile
public File getTorrentFile()
- Specified by:
getTorrentFile
in interface ShareItem
getTorrentLocation
protected String getTorrentLocation()
getFingerPrint
public byte[] getFingerPrint()
delete
protected void delete()
serialiseItem
protected void serialiseItem(Map map)
deserialiseItem
protected static ShareItemImpl deserialiseItem(ShareResourceImpl resource,
Map map)
throws ShareException
- Throws:
ShareException