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 java.lang.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 java.lang.String torrent_save_location
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
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