Class ShareResourceDirImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.sharing.ShareResourceImpl
-
- com.biglybt.pifimpl.local.sharing.ShareResourceFileOrDirImpl
-
- com.biglybt.pifimpl.local.sharing.ShareResourceDirImpl
-
- All Implemented Interfaces:
ShareResource
,ShareResourceDir
public class ShareResourceDirImpl extends ShareResourceFileOrDirImpl implements ShareResourceDir
-
-
Field Summary
-
Fields 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
Constructors Modifier Constructor Description protected
ShareResourceDirImpl(ShareManagerImpl _manager, ShareResourceDirContentsImpl _parent, java.io.File _file, boolean _personal, java.util.Map<java.lang.String,java.lang.String> _properties)
protected
ShareResourceDirImpl(ShareManagerImpl _manager, java.io.File _file, java.util.Map _map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getDir()
protected byte[]
getFingerPrint()
protected static ShareResourceDirImpl
getResource(ShareManagerImpl _manager, java.io.File _file)
-
Methods inherited from class com.biglybt.pifimpl.local.sharing.ShareResourceFileOrDirImpl
canBeDeleted, checkConsistency, createTorrent, deleteInternal, deserialiseResource, getFile, getItem, getName, getProperties, getResourceSupport, serialiseResource, setProperties
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.pif.sharing.ShareResource
addChangeListener, addDeletionListener, canBeDeleted, delete, delete, getAttribute, getAttributes, getName, getParent, getProperties, getType, isDeleted, isPersistent, removeChangeListener, removeDeletionListener, setAttribute, setProperties
-
Methods inherited from interface com.biglybt.pif.sharing.ShareResourceDir
getItem
-
-
-
-
Constructor Detail
-
ShareResourceDirImpl
protected ShareResourceDirImpl(ShareManagerImpl _manager, ShareResourceDirContentsImpl _parent, java.io.File _file, boolean _personal, java.util.Map<java.lang.String,java.lang.String> _properties) throws ShareException
- Throws:
ShareException
-
ShareResourceDirImpl
protected ShareResourceDirImpl(ShareManagerImpl _manager, java.io.File _file, java.util.Map _map)
-
-
Method Detail
-
getResource
protected static ShareResourceDirImpl getResource(ShareManagerImpl _manager, java.io.File _file) throws ShareException
- Throws:
ShareException
-
getFingerPrint
protected byte[] getFingerPrint() throws ShareException
- Specified by:
getFingerPrint
in classShareResourceFileOrDirImpl
- Throws:
ShareException
-
getDir
public java.io.File getDir()
- Specified by:
getDir
in interfaceShareResourceDir
-
-