org.gudy.azureus2.pluginsimpl.local.sharing
Class ShareItemImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.sharing.ShareItemImpl
All Implemented Interfaces:
ShareItem

public class ShareItemImpl
extends Object
implements ShareItem


Field Summary
protected  byte[] fingerprint
           
protected  ShareResourceImpl resource
           
protected  Torrent torrent
           
protected  String torrent_save_location
           
 
Constructor Summary
protected ShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, String _save_location)
           
protected ShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, Torrent _torrent)
           
 
Method Summary
protected  void delete()
           
protected static ShareItemImpl deserialiseItem(ShareResourceImpl resource, Map map)
           
 byte[] getFingerPrint()
           
 Torrent getTorrent()
           
 File getTorrentFile()
           
protected  String getTorrentLocation()
           
protected  void serialiseItem(Map map)
           
protected  void setTorrent(Torrent _torrent)
           
protected  void writeTorrent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected ShareResourceImpl resource

fingerprint

protected byte[] fingerprint

torrent

protected Torrent torrent

torrent_save_location

protected String torrent_save_location
Constructor Detail

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
Method Detail

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