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 java.lang.Object
implements ShareItem


Field Summary
protected  byte[] fingerprint
           
protected  ShareResourceImpl resource
           
protected  Torrent torrent
           
protected  java.lang.String torrent_save_location
           
 
Constructor Summary
protected ShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, java.lang.String _save_location)
           
protected ShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, Torrent _torrent)
           
 
Method Summary
protected  void delete()
           
protected static ShareItemImpl deserialiseItem(ShareResourceImpl resource, java.util.Map map)
           
 byte[] getFingerPrint()
           
 Torrent getTorrent()
           
 java.io.File getTorrentFile()
           
protected  java.lang.String getTorrentLocation()
           
protected  void serialiseItem(java.util.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 java.lang.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,
                        java.lang.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 java.io.File getTorrentFile()
Specified by:
getTorrentFile in interface ShareItem

getTorrentLocation

protected java.lang.String getTorrentLocation()

getFingerPrint

public byte[] getFingerPrint()

delete

protected void delete()

serialiseItem

protected void serialiseItem(java.util.Map map)

deserialiseItem

protected static ShareItemImpl deserialiseItem(ShareResourceImpl resource,
                                               java.util.Map map)
                                        throws ShareException
Throws:
ShareException