com.aelitis.azureus.core.torrent
Class PlatformTorrentUtils
java.lang.Object
com.aelitis.azureus.core.torrent.PlatformTorrentUtils
public class PlatformTorrentUtils
- extends Object
- Author:
- TuxPaper
Method Summary |
static void |
addHasBeenOpenedListener(HasBeenOpenedListener l)
|
static void |
addPlatformHost(String host)
|
static boolean |
embeddedPlayerAvail()
|
static String |
getContentAuthor(TOTorrent torrent)
|
static String |
getContentDescription(TOTorrent torrent)
|
static long |
getContentDurationMillis(TOTorrent torrent)
|
static String |
getContentHash(TOTorrent torrent)
|
static Map |
getContentMap(TOTorrent torrent)
|
static Map |
getContentMapMap(TOTorrent torrent,
String key)
|
static String |
getContentMapString(TOTorrent torrent,
String key)
|
static long |
getContentMinimumSpeedBps(TOTorrent torrent)
|
static long |
getContentNetworkID(TOTorrent torrent)
|
static long |
getContentNetworkID(TOTorrent torrent,
long def)
|
static int |
getContentPrimaryFileIndex(TOTorrent torrent)
|
static String |
getContentPublisher(TOTorrent torrent)
|
static long |
getContentStreamSpeedBps(TOTorrent torrent)
|
static byte[] |
getContentThumbnail(TOTorrent torrent)
|
static String |
getContentThumbnailUrl(TOTorrent torrent)
|
static String |
getContentTitle(TOTorrent torrent)
|
static String |
getContentTitle2(DownloadManager dm)
|
static String |
getContentType(TOTorrent torrent)
|
static String |
getContentURL(TOTorrent torrent)
|
static int[] |
getContentVideoResolution(TOTorrent torrent)
|
static long |
getContentVideoRunningTime(TOTorrent torrent)
|
static long |
getExpiresOn(TOTorrent torrent)
|
static boolean |
getHasBeenOpened(DownloadManager dm)
|
static List<String> |
getPlatformHosts()
|
static long |
getQOSClass(TOTorrent torrent)
|
static boolean |
isAdvancedViewOnly(DownloadManager dm)
|
static boolean |
isContent(Torrent torrent,
boolean requirePlatformTracker)
|
static boolean |
isContent(TOTorrent torrent,
boolean requirePlatformTracker)
|
static boolean |
isContentProgressive(TOTorrent torrent)
|
static boolean |
isFeaturedContent(TOTorrent torrent)
|
static boolean |
isPlatformHost(String host)
|
static boolean |
isPlatformTracker(Torrent torrent)
|
static boolean |
isPlatformTracker(TOTorrent torrent)
|
static void |
log(String str)
|
static void |
log(TOTorrent torrent,
String string)
|
static void |
setContentDescription(TOTorrent torrent,
String desc)
|
static void |
setContentDurationMillis(TOTorrent torrent,
long millis)
|
static void |
setContentMapMap(TOTorrent torrent,
String key,
Map value)
|
static void |
setContentNetworkID(TOTorrent torrent,
long cnet)
|
static void |
setContentPrimaryFileIndex(TOTorrent torrent,
int index)
|
static void |
setContentThumbnail(TOTorrent torrent,
byte[] thumbnail)
|
static void |
setContentThumbnailUrl(TOTorrent torrent,
String url)
|
static void |
setContentTitle(TOTorrent torrent,
String title)
|
static void |
setContentType(TOTorrent torrent,
String title)
|
static void |
setHasBeenOpened(DownloadManager dm,
boolean opened)
|
static void |
setQOSClass(TOTorrent torrent,
long cla)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AELITIS_HOST_CORE
public static final String AELITIS_HOST_CORE
- See Also:
- Constant Field Values
VUZE_HOST_CORE
public static final String VUZE_HOST_CORE
- See Also:
- Constant Field Values
DEBUG_CACHING
public static final boolean DEBUG_CACHING
PlatformTorrentUtils
public PlatformTorrentUtils()
getContentMap
public static Map getContentMap(TOTorrent torrent)
getContentMapString
public static String getContentMapString(TOTorrent torrent,
String key)
getContentMapMap
public static Map getContentMapMap(TOTorrent torrent,
String key)
setContentMapMap
public static void setContentMapMap(TOTorrent torrent,
String key,
Map value)
getContentHash
public static String getContentHash(TOTorrent torrent)
getContentTitle
public static String getContentTitle(TOTorrent torrent)
setContentTitle
public static void setContentTitle(TOTorrent torrent,
String title)
getContentDescription
public static String getContentDescription(TOTorrent torrent)
setContentDescription
public static void setContentDescription(TOTorrent torrent,
String desc)
getContentType
public static String getContentType(TOTorrent torrent)
setContentType
public static void setContentType(TOTorrent torrent,
String title)
getContentAuthor
public static String getContentAuthor(TOTorrent torrent)
getContentPublisher
public static String getContentPublisher(TOTorrent torrent)
getContentURL
public static String getContentURL(TOTorrent torrent)
getQOSClass
public static long getQOSClass(TOTorrent torrent)
setQOSClass
public static void setQOSClass(TOTorrent torrent,
long cla)
getContentNetworkID
public static long getContentNetworkID(TOTorrent torrent)
getContentNetworkID
public static long getContentNetworkID(TOTorrent torrent,
long def)
setContentNetworkID
public static void setContentNetworkID(TOTorrent torrent,
long cnet)
isFeaturedContent
public static boolean isFeaturedContent(TOTorrent torrent)
getContentThumbnail
public static byte[] getContentThumbnail(TOTorrent torrent)
getContentThumbnailUrl
public static String getContentThumbnailUrl(TOTorrent torrent)
setContentThumbnailUrl
public static void setContentThumbnailUrl(TOTorrent torrent,
String url)
setContentThumbnail
public static void setContentThumbnail(TOTorrent torrent,
byte[] thumbnail)
isContent
public static boolean isContent(TOTorrent torrent,
boolean requirePlatformTracker)
isContent
public static boolean isContent(Torrent torrent,
boolean requirePlatformTracker)
getPlatformHosts
public static List<String> getPlatformHosts()
addPlatformHost
public static void addPlatformHost(String host)
isPlatformHost
public static boolean isPlatformHost(String host)
isPlatformTracker
public static boolean isPlatformTracker(TOTorrent torrent)
isPlatformTracker
public static boolean isPlatformTracker(Torrent torrent)
isAdvancedViewOnly
public static boolean isAdvancedViewOnly(DownloadManager dm)
isContentProgressive
public static boolean isContentProgressive(TOTorrent torrent)
getContentStreamSpeedBps
public static long getContentStreamSpeedBps(TOTorrent torrent)
getContentMinimumSpeedBps
public static long getContentMinimumSpeedBps(TOTorrent torrent)
getExpiresOn
public static long getExpiresOn(TOTorrent torrent)
getContentPrimaryFileIndex
public static int getContentPrimaryFileIndex(TOTorrent torrent)
setContentPrimaryFileIndex
public static void setContentPrimaryFileIndex(TOTorrent torrent,
int index)
getContentVideoRunningTime
public static long getContentVideoRunningTime(TOTorrent torrent)
getContentDurationMillis
public static long getContentDurationMillis(TOTorrent torrent)
setContentDurationMillis
public static void setContentDurationMillis(TOTorrent torrent,
long millis)
getContentVideoResolution
public static int[] getContentVideoResolution(TOTorrent torrent)
log
public static void log(String str)
log
public static void log(TOTorrent torrent,
String string)
- Parameters:
torrent
- string
- - Since:
- 3.0.1.5
embeddedPlayerAvail
public static boolean embeddedPlayerAvail()
getContentTitle2
public static String getContentTitle2(DownloadManager dm)
- Parameters:
torrent
- - Since:
- 3.0.4.3
setHasBeenOpened
public static void setHasBeenOpened(DownloadManager dm,
boolean opened)
getHasBeenOpened
public static boolean getHasBeenOpened(DownloadManager dm)
addHasBeenOpenedListener
public static void addHasBeenOpenedListener(HasBeenOpenedListener l)