org.gudy.azureus2.pluginsimpl.local.sharing
Class ShareResourceFileOrDirImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceImpl
org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceFileOrDirImpl
- All Implemented Interfaces:
- ShareResource
- Direct Known Subclasses:
- ShareResourceDirImpl, ShareResourceFileImpl
public abstract class ShareResourceFileOrDirImpl
- extends ShareResourceImpl
Methods inherited from class org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceImpl |
addChangeListener, addDeletionListener, delete, delete, delete, deleteTorrent, getAttribute, getAttributes, getChildren, getFingerPrint, getFingerPrintSupport, getNewTorrentLocation, getParent, getTorrentFile, getType, inheritAttributes, 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 |
ShareResourceFileOrDirImpl
protected ShareResourceFileOrDirImpl(ShareManagerImpl _manager,
ShareResourceDirContentsImpl _parent,
int _type,
File _file,
boolean _personal,
Map<String,String> _properties)
throws ShareException
- Throws:
ShareException
ShareResourceFileOrDirImpl
protected ShareResourceFileOrDirImpl(ShareManagerImpl _manager,
int _type,
File _file,
Map _map)
throws ShareException
- Throws:
ShareException
getResourceSupport
protected static ShareResourceImpl getResourceSupport(ShareManagerImpl _manager,
File _file)
throws ShareException
- Throws:
ShareException
canBeDeleted
public boolean canBeDeleted()
throws ShareResourceDeletionVetoException
- Specified by:
canBeDeleted
in interface ShareResource
- Specified by:
canBeDeleted
in class ShareResourceImpl
- Throws:
ShareResourceDeletionVetoException
getFingerPrint
protected abstract byte[] getFingerPrint()
throws ShareException
- Throws:
ShareException
createTorrent
protected void createTorrent()
throws ShareException
- Throws:
ShareException
checkConsistency
protected void checkConsistency()
throws ShareException
- Specified by:
checkConsistency
in class ShareResourceImpl
- Throws:
ShareException
deserialiseResource
protected static ShareResourceImpl deserialiseResource(ShareManagerImpl manager,
Map map,
int type)
throws ShareException
- Throws:
ShareException
serialiseResource
protected void serialiseResource(Map map)
- Overrides:
serialiseResource
in class ShareResourceImpl
deleteInternal
protected void deleteInternal()
- Specified by:
deleteInternal
in class ShareResourceImpl
getName
public String getName()
getFile
public File getFile()
getItem
public ShareItem getItem()
getProperties
public Map<String,String> getProperties()