Class ShareResourceFileOrDirImpl
java.lang.Object
com.biglybt.pifimpl.local.sharing.ShareResourceImpl
com.biglybt.pifimpl.local.sharing.ShareResourceFileOrDirImpl
- All Implemented Interfaces:
ShareResource
- Direct Known Subclasses:
ShareResourceDirImpl
,ShareResourceFileImpl
-
Field Summary
FieldsFields inherited from class com.biglybt.pifimpl.local.sharing.ShareResourceImpl
attributes, change_listeners, deletion_listeners, hasher, manager, parent, type
Fields inherited from interface com.biglybt.pif.sharing.ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ShareResourceFileOrDirImpl
(ShareManagerImpl _manager, int _type, File _file, Map _map) protected
ShareResourceFileOrDirImpl
(ShareManagerImpl _manager, ShareResourceDirContentsImpl _parent, int _type, File _file, boolean _personal, Map<String, String> _properties) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
protected void
protected void
protected static ShareResourceImpl
deserialiseResource
(ShareManagerImpl manager, Map map, int type) getFile()
protected abstract byte[]
getItem()
getName()
protected static ShareResourceImpl
getResourceSupport
(ShareManagerImpl _manager, File _file) protected void
serialiseResource
(Map map) void
setProperties
(Map<String, String> props, boolean internal) Methods inherited from class com.biglybt.pifimpl.local.sharing.ShareResourceImpl
addChangeListener, addDeletionListener, delete, delete, delete, deleteTorrent, fireChangeEvent, getAttribute, getAttributes, getChildren, getFingerPrint, getFingerPrintSupport, getNewTorrentLocation, getParent, getTorrentFile, getType, inheritAttributes, isDeleted, isPersistent, readTorrent, removeChangeListener, removeDeletionListener, setAttribute, setParent, writeTorrent
-
Field Details
-
file
-
personal_key
private final byte[] personal_key -
properties
-
item
-
-
Constructor Details
-
Method Details
-
canBeDeleted
- Specified by:
canBeDeleted
in interfaceShareResource
- Specified by:
canBeDeleted
in classShareResourceImpl
- Throws:
ShareResourceDeletionVetoException
-
getFingerPrint
- Throws:
ShareException
-
createTorrent
- Throws:
ShareException
-
checkConsistency
- Specified by:
checkConsistency
in classShareResourceImpl
- Throws:
ShareException
-
serialiseResource
- Overrides:
serialiseResource
in classShareResourceImpl
-
deleteInternal
protected void deleteInternal()- Overrides:
deleteInternal
in classShareResourceImpl
-
getName
-
getFile
-
getItem
-
getProperties
-
setProperties