org.gudy.azureus2.pluginsimpl.local
Class PluginCoreUtils
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.PluginCoreUtils
public class PluginCoreUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginCoreUtils
public PluginCoreUtils()
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()