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 FormattersGet display and byte format utilities.static ResourceDownloaderFactorystatic ResourceUploaderFactorystatic RSSFeedgetRSSFeed(URL source_url, InputStream is) static UIManagergetUIManager(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 intpromptUser(String title, String desc, String[] options, int default_option) See UIInstance.promptUser
-
Field Details
-
formatters
-
-
Constructor Details
-
StaticUtilities
public StaticUtilities()
-
-
Method Details
-
getFormatters
-
getResourceDownloaderFactory
-
getResourceUploaderFactory
-
getRSSFeed
public static RSSFeed getRSSFeed(URL source_url, InputStream is) throws SimpleXMLParserDocumentException - Throws:
SimpleXMLParserDocumentException
-
promptUser
-
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:
-