org.gudy.azureus2.plugins.utils
Class StaticUtilities

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

public class StaticUtilities
extends 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(URL source_url, 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(String title, String desc, 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(URL source_url,
                                 InputStream is)
                          throws SimpleXMLParserDocumentException
Throws:
SimpleXMLParserDocumentException

promptUser

public static int promptUser(String title,
                             String desc,
                             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: