Package com.biglybt.pif.utils
Class StaticUtilities
- java.lang.Object
-
- com.biglybt.pif.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.
-
-
Field Summary
Fields Modifier and Type Field Description private static Formatters
formatters
-
Constructor Summary
Constructors Constructor Description StaticUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
Field Detail
-
formatters
private static Formatters formatters
-
-
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:
-
-