org.gudy.azureus2.plugins.utils
Class StaticUtilities

java.lang.Object
  extended by org.gudy.azureus2.plugins.utils.StaticUtilities

public class StaticUtilities
extends java.lang.Object

Plugin utility class for easy access to static helper methods, without the need for a plugin interface instance.


Constructor Summary
StaticUtilities()
           
 
Method Summary
static Formatters getFormatters()
          Get display and byte format utilities.
static ResourceDownloaderFactory getResourceDownloaderFactory()
           
static ResourceUploaderFactory getResourceUploaderFactory()
           
static RSSFeed getRSSFeed(java.net.URL source_url, java.io.InputStream is)
           
static UIManager getUIManager(long millis_to_wait_for_attach)
          gets the default UI manager and also waits for up to a specified time for a UI instance to attach.
static int promptUser(java.lang.String title, java.lang.String desc, java.lang.String[] options, int default_option)
          See UIInstance.promptUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticUtilities

public StaticUtilities()
Method Detail

getFormatters

public static Formatters getFormatters()
Get display and byte format utilities.

Returns:
formatters

getResourceDownloaderFactory

public static ResourceDownloaderFactory getResourceDownloaderFactory()

getResourceUploaderFactory

public static ResourceUploaderFactory getResourceUploaderFactory()

getRSSFeed

public static RSSFeed getRSSFeed(java.net.URL source_url,
                                 java.io.InputStream is)
                          throws SimpleXMLParserDocumentException
Throws:
SimpleXMLParserDocumentException

promptUser

public static int promptUser(java.lang.String title,
                             java.lang.String desc,
                             java.lang.String[] options,
                             int default_option)
See UIInstance.promptUser

Parameters:
title -
desc -
options -
default_option -
Returns:

getUIManager

public static UIManager getUIManager(long millis_to_wait_for_attach)
gets the default UI manager and also waits for up to a specified time for a UI instance to attach. useful when doing things during initialisation

Parameters:
millis_to_wait_for_attach -
Returns: