Package com.biglybt.pif.utils
Class StaticUtilities
java.lang.Object
com.biglybt.pif.utils.StaticUtilities
Plugin utility class for easy access to static helper methods,
without the need for a plugin interface instance.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Formatters
Get display and byte format utilities.static ResourceDownloaderFactory
static ResourceUploaderFactory
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
-
Field Details
-
formatters
-
-
Constructor Details
-
StaticUtilities
public StaticUtilities()
-
-
Method Details
-
getFormatters
Get display and byte format utilities.- Returns:
- formatters
-
getResourceDownloaderFactory
-
getResourceUploaderFactory
-
getRSSFeed
public static RSSFeed getRSSFeed(URL source_url, InputStream is) throws SimpleXMLParserDocumentException - Throws:
SimpleXMLParserDocumentException
-
promptUser
See UIInstance.promptUser- Parameters:
title
-desc
-options
-default_option
-- Returns:
-
getUIManager
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:
-