com.aelitis.azureus.core.torrent
Class PlatformTorrentUtils

java.lang.Object
  extended by com.aelitis.azureus.core.torrent.PlatformTorrentUtils

public class PlatformTorrentUtils
extends java.lang.Object

Author:
TuxPaper

Field Summary
static java.lang.String AELITIS_HOST_CORE
           
static boolean DEBUG_CACHING
           
static java.lang.String VUZE_HOST_CORE
           
 
Constructor Summary
PlatformTorrentUtils()
           
 
Method Summary
static void addHasBeenOpenedListener(HasBeenOpenedListener l)
           
static void addPlatformHost(java.lang.String host)
           
static boolean embeddedPlayerAvail()
           
static java.lang.String getContentAuthor(TOTorrent torrent)
           
static java.lang.String getContentDescription(TOTorrent torrent)
           
static long getContentDurationMillis(TOTorrent torrent)
           
static java.lang.String getContentHash(TOTorrent torrent)
           
static java.util.Map getContentMap(TOTorrent torrent)
           
static java.util.Map getContentMapMap(TOTorrent torrent, java.lang.String key)
           
static java.lang.String getContentMapString(TOTorrent torrent, java.lang.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 java.lang.String getContentPublisher(TOTorrent torrent)
           
static long getContentStreamSpeedBps(TOTorrent torrent)
           
static byte[] getContentThumbnail(TOTorrent torrent)
           
static java.lang.String getContentThumbnailUrl(TOTorrent torrent)
           
static java.lang.String getContentTitle(TOTorrent torrent)
           
static java.lang.String getContentTitle2(DownloadManager dm)
           
static java.lang.String getContentType(TOTorrent torrent)
           
static java.lang.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 java.util.List<java.lang.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(java.lang.String host)
           
static boolean isPlatformTracker(Torrent torrent)
           
static boolean isPlatformTracker(TOTorrent torrent)
           
static void log(java.lang.String str)
           
static void log(TOTorrent torrent, java.lang.String string)
           
static void setContentDescription(TOTorrent torrent, java.lang.String desc)
           
static void setContentDurationMillis(TOTorrent torrent, long millis)
           
static void setContentMapMap(TOTorrent torrent, java.lang.String key, java.util.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, java.lang.String url)
           
static void setContentTitle(TOTorrent torrent, java.lang.String title)
           
static void setContentType(TOTorrent torrent, java.lang.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
 

Field Detail

AELITIS_HOST_CORE

public static final java.lang.String AELITIS_HOST_CORE
See Also:
Constant Field Values

VUZE_HOST_CORE

public static final java.lang.String VUZE_HOST_CORE
See Also:
Constant Field Values

DEBUG_CACHING

public static final boolean DEBUG_CACHING
Constructor Detail

PlatformTorrentUtils

public PlatformTorrentUtils()
Method Detail

getContentMap

public static java.util.Map getContentMap(TOTorrent torrent)

getContentMapString

public static java.lang.String getContentMapString(TOTorrent torrent,
                                                   java.lang.String key)

getContentMapMap

public static java.util.Map getContentMapMap(TOTorrent torrent,
                                             java.lang.String key)

setContentMapMap

public static void setContentMapMap(TOTorrent torrent,
                                    java.lang.String key,
                                    java.util.Map value)

getContentHash

public static java.lang.String getContentHash(TOTorrent torrent)

getContentTitle

public static java.lang.String getContentTitle(TOTorrent torrent)

setContentTitle

public static void setContentTitle(TOTorrent torrent,
                                   java.lang.String title)

getContentDescription

public static java.lang.String getContentDescription(TOTorrent torrent)

setContentDescription

public static void setContentDescription(TOTorrent torrent,
                                         java.lang.String desc)

getContentType

public static java.lang.String getContentType(TOTorrent torrent)

setContentType

public static void setContentType(TOTorrent torrent,
                                  java.lang.String title)

getContentAuthor

public static java.lang.String getContentAuthor(TOTorrent torrent)

getContentPublisher

public static java.lang.String getContentPublisher(TOTorrent torrent)

getContentURL

public static java.lang.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 java.lang.String getContentThumbnailUrl(TOTorrent torrent)

setContentThumbnailUrl

public static void setContentThumbnailUrl(TOTorrent torrent,
                                          java.lang.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 java.util.List<java.lang.String> getPlatformHosts()

addPlatformHost

public static void addPlatformHost(java.lang.String host)

isPlatformHost

public static boolean isPlatformHost(java.lang.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(java.lang.String str)

log

public static void log(TOTorrent torrent,
                       java.lang.String string)
Parameters:
torrent -
string -
Since:
3.0.1.5

embeddedPlayerAvail

public static boolean embeddedPlayerAvail()

getContentTitle2

public static java.lang.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)