|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ultrasearch.query.Util
Utility class for some useful methods.
Constructor Summary | |
Util() |
Method Summary | |
static java.util.Locale |
getBestLocale(java.util.Locale neededLocale, java.util.Set candidateSet, java.util.Locale defaultLocale, java.util.Locale lastResort) Calculate the best locale for from a set of candidate locales. |
static java.util.List |
getLocaleFallbacks(java.util.Locale orig, java.util.Locale def) Calculate the search path from a specific locale (orig) to its parent locales, then to the default locale (def), and finally to the default locale's parent locales. |
static java.lang.String |
getVersion() Get the version of the Java Query API. |
static java.lang.String |
htmlEncode(java.lang.String input) Utility method to apply HTML encoding to a specified string. |
static java.util.Locale |
parseLocale(java.lang.String localeString) Utility method parse a string into an java.util.Locale object |
static java.util.Locale |
parseLocale(java.lang.String localeString, char separator) Utility method parse a string into an java.util.Locale object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Util()
Method Detail |
public static java.lang.String getVersion()
public static java.lang.String htmlEncode(java.lang.String input)
This method encodes the input string by performing the following substitutions:
input
- The input string to convert.public static java.util.Locale parseLocale(java.lang.String localeString) throws java.text.ParseException
the format of the string should be consistent with the output of java.util.Locale's toString()
method.
same as calling parseLocale (localeString, '_')
.
localeString
- The input string to parse.java.text.ParseException
public static java.util.Locale parseLocale(java.lang.String localeString, char separator) throws java.text.ParseException
the format of the string should be consistent with the output of java.util.Locale's toString()
method, although the separator can be character other than underscore.
same as calling parseLocale (localeString, '_')
.
localeString
- The input string to parse.java.text.ParseException
public static java.util.Locale getBestLocale(java.util.Locale neededLocale, java.util.Set candidateSet, java.util.Locale defaultLocale, java.util.Locale lastResort)
public static java.util.List getLocaleFallbacks(java.util.Locale orig, java.util.Locale def)
def
- the default locale, usually from Locale.getDefault(), null allowed
|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |