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

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.ShareResourceFileImpl
All Implemented Interfaces:
ShareResource, ShareResourceFile

public class ShareResourceFileImpl
extends ShareResourceFileOrDirImpl
implements ShareResourceFile


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 ShareResourceFileImpl(ShareManagerImpl _manager, java.io.File _file, java.util.Map _map)
           
protected ShareResourceFileImpl(ShareManagerImpl _manager, ShareResourceDirContentsImpl _parent, java.io.File _file, boolean _personal, java.util.Map<java.lang.String,java.lang.String> _properties)
           
 
Method Summary
protected  byte[] getFingerPrint()
           
protected static ShareResourceFileImpl 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.ShareResourceFile
getFile, 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

ShareResourceFileImpl

protected ShareResourceFileImpl(ShareManagerImpl _manager,
                                ShareResourceDirContentsImpl _parent,
                                java.io.File _file,
                                boolean _personal,
                                java.util.Map<java.lang.String,java.lang.String> _properties)
                         throws ShareException
Throws:
ShareException

ShareResourceFileImpl

protected ShareResourceFileImpl(ShareManagerImpl _manager,
                                java.io.File _file,
                                java.util.Map _map)
                         throws ShareException
Throws:
ShareException
Method Detail

getResource

protected static ShareResourceFileImpl 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