org.gudy.azureus2.pluginsimpl.local.sharing
Class ShareResourceDirImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceImpl
      extended by org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceFileOrDirImpl
          extended by org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceDirImpl
All Implemented Interfaces:
ShareResource, ShareResourceDir

public class ShareResourceDirImpl
extends ShareResourceFileOrDirImpl
implements ShareResourceDir


Field Summary
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceImpl
attributes, change_listeners, deletion_listeners, hasher, manager, parent, type
 
Fields inherited from interface org.gudy.azureus2.plugins.sharing.ShareResource
ST_DIR, ST_DIR_CONTENTS, ST_FILE
 
Constructor Summary
protected ShareResourceDirImpl(ShareManagerImpl _manager, java.io.File _file, java.util.Map _map)
           
protected ShareResourceDirImpl(ShareManagerImpl _manager, ShareResourceDirContentsImpl _parent, java.io.File _file, boolean _personal, java.util.Map<java.lang.String,java.lang.String> _properties)
           
 
Method Summary
 java.io.File getDir()
           
protected  byte[] getFingerPrint()
           
protected static ShareResourceDirImpl getResource(ShareManagerImpl _manager, java.io.File _file)
           
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.local.sharing.ShareResourceFileOrDirImpl
canBeDeleted, checkConsistency, createTorrent, deleteInternal, deserialiseResource, getFile, getItem, getName, getProperties, getResourceSupport, serialiseResource
 
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
 
Methods inherited from interface org.gudy.azureus2.plugins.sharing.ShareResourceDir
getItem
 
Methods inherited from interface org.gudy.azureus2.plugins.sharing.ShareResource
addChangeListener, addDeletionListener, canBeDeleted, delete, delete, getAttribute, getAttributes, getName, getParent, getProperties, getType, isPersistent, removeChangeListener, removeDeletionListener, setAttribute
 

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)
                        throws ShareException
Throws:
ShareException
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 class ShareResourceFileOrDirImpl
Throws:
ShareException

getDir

public java.io.File getDir()
Specified by:
getDir in interface ShareResourceDir