org.gudy.azureus2.pluginsimpl.local
Class PluginCoreUtils

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.PluginCoreUtils

public class PluginCoreUtils
extends Object


Constructor Summary
PluginCoreUtils()
           
 
Method Summary
static Object convert(Object datasource, boolean toCore)
           
static boolean isInitialisationComplete()
           
static NetworkConnection unwrap(Connection connection)
           
static DiskManager unwrap(DiskManager dm)
           
static DiskManagerFileInfo unwrap(DiskManagerFileInfo info)
           
static DownloadManager unwrap(Download dm)
           
static PEPeer unwrap(Peer peer)
           
static PEPeerManager unwrap(PeerManager pm)
           
static TOTorrent unwrap(Torrent t)
           
static TRTrackerServerTorrent unwrap(TrackerTorrent torrent)
           
static DownloadManager unwrapIfPossible(Download dm)
           
static DiskManager wrap(DiskManager dm)
           
static DiskManagerFileInfo wrap(DiskManagerFileInfo info)
           
static Download wrap(DownloadManager dm)
          May return NULL if download not found (e.g.
static Connection wrap(NetworkConnection connection)
           
static PeerManager wrap(PEPeerManager pm)
           
static Torrent wrap(TOTorrent t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginCoreUtils

public PluginCoreUtils()
Method Detail

wrap

public static Torrent wrap(TOTorrent t)

unwrap

public static TOTorrent unwrap(Torrent t)

wrap

public static DiskManager wrap(DiskManager dm)

unwrap

public static DiskManager unwrap(DiskManager dm)

wrap

public static Download wrap(DownloadManager dm)
May return NULL if download not found (e.g. has been removed)

Parameters:
dm -
Returns:
may be null

unwrap

public static NetworkConnection unwrap(Connection connection)

wrap

public static Connection wrap(NetworkConnection connection)

wrap

public static DiskManagerFileInfo wrap(DiskManagerFileInfo info)
                                throws DownloadException
Throws:
DownloadException

unwrap

public static DiskManagerFileInfo unwrap(DiskManagerFileInfo info)
                                  throws DownloadException
Throws:
DownloadException

convert

public static Object convert(Object datasource,
                             boolean toCore)

unwrapIfPossible

public static DownloadManager unwrapIfPossible(Download dm)

unwrap

public static DownloadManager unwrap(Download dm)

wrap

public static PeerManager wrap(PEPeerManager pm)

unwrap

public static PEPeerManager unwrap(PeerManager pm)

unwrap

public static TRTrackerServerTorrent unwrap(TrackerTorrent torrent)

unwrap

public static PEPeer unwrap(Peer peer)

isInitialisationComplete

public static boolean isInitialisationComplete()