Class ShareItemImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.sharing.ShareItemImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
fingerprint
protected ShareResourceImpl
resource
protected Torrent
torrent
protected java.lang.String
torrent_save_location
-
Constructor Summary
Constructors Modifier Constructor Description protected
ShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, Torrent _torrent)
protected
ShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, java.lang.String _save_location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
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)
-
-
Method Detail
-
getTorrent
public Torrent getTorrent() throws ShareException
- Specified by:
getTorrent
in interfaceShareItem
- 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 interfaceShareItem
-
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)
-
-