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, typeFields inherited from interface com.biglybt.pif.sharing.ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShareResourceFileOrDirImpl(ShareManagerImpl _manager, int _type, File _file, Map _map) protectedShareResourceFileOrDirImpl(ShareManagerImpl _manager, ShareResourceDirContentsImpl _parent, int _type, File _file, boolean _personal, Map<String, String> _properties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidprotected voidprotected voidprotected static ShareResourceImpldeserialiseResource(ShareManagerImpl manager, Map map, int type) getFile()protected abstract byte[]getItem()getName()protected static ShareResourceImplgetResourceSupport(ShareManagerImpl _manager, File _file) protected voidserialiseResource(Map map) voidsetProperties(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:
canBeDeletedin interfaceShareResource- Specified by:
canBeDeletedin classShareResourceImpl- Throws:
ShareResourceDeletionVetoException
-
getFingerPrint
- Throws:
ShareException
-
createTorrent
- Throws:
ShareException
-
checkConsistency
- Specified by:
checkConsistencyin classShareResourceImpl- Throws:
ShareException
-
serialiseResource
- Overrides:
serialiseResourcein classShareResourceImpl
-
deleteInternal
protected void deleteInternal()- Overrides:
deleteInternalin classShareResourceImpl
-
getName
-
getFile
-
getItem
-
getProperties
-
setProperties