Class ShareResourceDirContentsImpl
java.lang.Object
com.biglybt.pifimpl.local.sharing.ShareResourceImpl
com.biglybt.pifimpl.local.sharing.ShareResourceDirContentsImpl
- All Implemented Interfaces:
ShareResource, ShareResourceDirContents
public class ShareResourceDirContentsImpl
extends ShareResourceImpl
implements ShareResourceDirContents
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ShareResource[]private final byte[]private final booleanprivate final FileFields inherited from class ShareResourceImpl
attributes, change_listeners, deletion_listeners, hasher, manager, parent, typeFields inherited from interface ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShareResourceDirContentsImpl(ShareManagerImpl _manager, File _dir, boolean _recursive, boolean _personal, Map<String, String> _properties, boolean _async_check) protectedShareResourceDirContentsImpl(ShareManagerImpl _manager, File _dir, boolean _recursive, Map _map) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidprotected ListcheckConsistency(File dir) protected voidprotected static ShareResourceImpldeserialiseResource(ShareManagerImpl manager, Map map) getName()getRoot()booleanprotected voidserialiseResource(Map map) voidsetProperties(Map<String, String> props, boolean internal) Methods inherited from class ShareResourceImpl
addChangeListener, addDeletionListener, delete, delete, delete, deleteTorrent, fireChangeEvent, getAttribute, getAttributes, getFingerPrint, getFingerPrintSupport, getNewTorrentLocation, getParent, getTorrentFile, getType, inheritAttributes, isDeleted, isPersistent, readTorrent, removeChangeListener, removeDeletionListener, setAttribute, setParent, writeTorrentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ShareResource
addChangeListener, addDeletionListener, delete, delete, getAttribute, getAttributes, getParent, getType, isDeleted, isPersistent, removeChangeListener, removeDeletionListener, setAttribute
-
Field Details
-
root
-
recursive
private final boolean recursive -
properties
-
personal_key
private final byte[] personal_key -
children
-
-
Constructor Details
-
Method Details
-
canBeDeleted
- Specified by:
canBeDeletedin interfaceShareResource- Specified by:
canBeDeletedin classShareResourceImpl- Throws:
ShareResourceDeletionVetoException
-
checkConsistency
- Specified by:
checkConsistencyin classShareResourceImpl- Throws:
ShareException
-
checkConsistency
- Throws:
ShareException
-
deleteInternal
protected void deleteInternal()- Overrides:
deleteInternalin classShareResourceImpl
-
serialiseResource
- Overrides:
serialiseResourcein classShareResourceImpl
-
getName
- Specified by:
getNamein interfaceShareResource
-
getRoot
- Specified by:
getRootin interfaceShareResourceDirContents
-
isRecursive
public boolean isRecursive()- Specified by:
isRecursivein interfaceShareResourceDirContents
-
getChildren
- Specified by:
getChildrenin interfaceShareResourceDirContents- Overrides:
getChildrenin classShareResourceImpl
-
getProperties
- Specified by:
getPropertiesin interfaceShareResource
-
setProperties
- Specified by:
setPropertiesin interfaceShareResource
-