|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectides.api.utilities.GeneralUtils
public class GeneralUtils
A collection of methods and classes of general utility.
| Nested Class Summary | |
|---|---|
static class |
GeneralUtils.JOptionPaneKeyBinder
This class allows the use of simple keyboard shortcuts for the Yes/No/etc. |
| Constructor Summary | |
|---|---|
GeneralUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
launchBrowser(java.lang.String url)
Attempts to open a browser in the host OS and load the provided URL. |
static java.lang.String |
truncateMessage(java.lang.String msg)
Truncates to 10 lines and every line to 250 chars. |
static java.lang.String |
XMLTextEscape(java.lang.String s)
Escapes the ampersand (&) and opening angle bracket (<) as defined in XML. |
static java.lang.String |
XMLTextUnescape(java.lang.String s)
Unescapes the ampersand (&) and opening angle bracket (<) in XML-escaped text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneralUtils()
| Method Detail |
|---|
public static java.lang.String truncateMessage(java.lang.String msg)
msg - original message
public static java.lang.String XMLTextEscape(java.lang.String s)
s - original text
public static java.lang.String XMLTextUnescape(java.lang.String s)
s - original text with XML-escaped ampersands and opening angle
brackets
public static boolean launchBrowser(java.lang.String url)
contains code written by Dem Pilafian.
url - the URL to be loaded in the browser
true if no exceptions were encountered in launching
the browser and loading the provided URL; false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||