Class ShareItemImpl
java.lang.Object
com.biglybt.pifimpl.local.sharing.ShareItemImpl
- All Implemented Interfaces:
ShareItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected ShareResourceImplprotected Torrentprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, Torrent _torrent) protectedShareItemImpl(ShareResourceImpl _resource, byte[] _fingerprint, String _save_location) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddelete()protected static ShareItemImpldeserialiseItem(ShareResourceImpl resource, Map map) byte[]protected Stringprotected voidserialiseItem(Map map) protected voidsetTorrent(Torrent _torrent) protected void
-
Field Details
-
resource
-
fingerprint
protected byte[] fingerprint -
torrent
-
torrent_save_location
-
-
Constructor Details
-
Method Details
-
getTorrent
- Specified by:
getTorrentin interfaceShareItem- Throws:
ShareException
-
writeTorrent
- Throws:
ShareException
-
setTorrent
-
getTorrentFile
- Specified by:
getTorrentFilein interfaceShareItem
-
getTorrentLocation
-
getFingerPrint
public byte[] getFingerPrint() -
delete
protected void delete() -
serialiseItem
-