|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.Utilities
| Constructor Summary | |
Utilities()
|
|
| Method Summary | |
static java.lang.Integer |
cloneInteger(java.lang.Integer i)
Returns a new Integer object that is a clone of another. |
static java.lang.String |
decodeUTF8(java.lang.String inString)
Returns an decoded string encoded using UTF-8. |
static java.lang.String |
encodeUTF8(java.lang.String inString)
Returns a string encoded using UTF-8. |
static java.lang.String |
escapeQuery(java.lang.String inString)
Returns a string with ', ", &, <, and > characters changed to their HTML equivalents. |
static java.lang.String |
fixAmpersands(java.lang.String in)
Escapes the ampersands in the string. |
static java.lang.String |
formatDD(double dd,
boolean isLat,
double scaleFactor,
java.util.Locale locale)
Returns the formatted latitude or longitude for the specified decimal degrees. |
static double |
getAngle(java.lang.String angleString)
Gets the angle from a string containing decimal degrees, degree, minute, seconds separated by spaces, or cardinal notation. |
static java.lang.String |
getArg(java.lang.String argString,
java.lang.String key)
Gets the value of a parameter in a comma separated list of parameters like name1=value,name2=value etc. |
static java.lang.String |
getCardinalAngle(double degrees)
Returns the cardinal angle for the specified decimal degrees. |
static java.util.ArrayList |
getCopy(java.util.ArrayList o)
Makes a copy of the object passed as a parameter. |
static java.lang.Boolean |
getCopy(java.lang.Boolean o)
Makes a copy of the object passed as a parameter. |
static java.awt.Color |
getCopy(java.awt.Color o)
Makes a copy of the object passed as a parameter. |
static Color |
getCopy(Color o)
Makes a copy of the object passed as a parameter. |
static Envelope |
getCopy(Envelope o)
Makes a copy of the object passed as a parameter. |
static Feature |
getCopy(Feature o)
Makes a copy of the object passed as a parameter. |
static java.awt.Font |
getCopy(java.awt.Font o)
Makes a copy of the object passed as a parameter. |
static java.util.HashMap |
getCopy(java.util.HashMap o)
Makes a copy of the object passed as a parameter. |
static java.util.HashSet |
getCopy(java.util.HashSet o)
Makes a copy of the object passed as a parameter. |
static Line |
getCopy(Line o)
Makes a copy of the object passed as a parameter. |
static Point |
getCopy(Point o)
Makes a copy of the object passed as a parameter. |
static Points |
getCopy(Points o)
Makes a copy of the object passed as a parameter. |
static Polygon |
getCopy(Polygon o)
Makes a copy of the object passed as a parameter. |
static java.lang.String |
getCopy(java.lang.String o)
Makes a copy of the object passed as a parameter. |
static int |
getDegrees(double dd)
Returns the degrees portion of a decimal degree. |
static java.lang.String |
getLatitudeString(double dd)
Returns the formatted latitude for the specified decimal degrees. |
static java.lang.String |
getLatitudeString(double dd,
double scaleFactor,
java.util.Locale locale)
Returns the formatted latitude for the specified decimal degrees. |
static java.lang.String |
getLatitudeString(double dd,
java.util.Locale locale)
Returns the formatted latitude for the specified decimal degrees. |
static java.lang.String |
getLongitudeString(double dd)
Returns the formatted longitude for the specified decimal degrees. |
static java.lang.String |
getLongitudeString(double dd,
double scaleFactor,
java.util.Locale locale)
Returns the formatted longitude for the specified decimal degrees. |
static java.lang.String |
getLongitudeString(double dd,
java.util.Locale locale)
Returns the formatted longitude for the specified decimal degrees. |
static int |
getMinutes(double dd)
Returns the minutes portion of a decimal degree. |
static int |
getNextObjectId()
Gets a unique object id. |
static java.lang.String |
getNextParameterSeparator(java.lang.String url)
Gets the separator (? or &) that will be used when adding the next parameter for a url. |
static java.lang.String |
getRelativeUrl(java.lang.String inUrl,
java.lang.String context,
java.lang.String framework)
Returns a URL string representing the path of the URL from the location of an IMF configuration file or from the location of the IMF installation if $IMF is used. |
static double |
getSeconds(double dd)
Returns the seconds portion of a decimal degree. |
static java.lang.String |
getShortString(java.lang.String inString,
int maxLength)
Returns a string with a maximum specified length. |
static java.lang.String |
initcap(java.lang.String value)
Returns a string with the first character of each work capitalized. |
static java.lang.String |
intToHex(int number,
int length)
Returns the hext string of the specified length padded by leading zeros. |
static java.lang.String |
removeInvalidCharacters(java.lang.String inStr,
java.lang.String validChars)
Returns a string with invalid characters removed. |
static java.lang.String |
removeSpaces(java.lang.String inString)
Remove spaces from a string. |
static java.lang.String |
replaceSubstring(java.lang.String str,
java.lang.String pattern,
java.lang.String replace)
Replaces all occurances of a substring in a string. |
static boolean |
sendEmail(java.lang.String mailServer,
java.lang.String logon,
java.lang.String fromAddress,
java.lang.String toAddress,
java.lang.String subject,
java.lang.String message)
Sends an e-mail message. |
static boolean |
string2boolean(java.lang.String arg)
Converts a string to a boolean, defaulting to false. |
static java.awt.Color |
string2color(java.lang.String arg)
Converts a string in the form "r,g,b" or "r,g,b,a" to a Color object. |
static double |
string2double(java.lang.String arg)
Converts a string to a double, defaulting to zero. |
static int |
string2int(java.lang.String arg)
Converts a string to an int, defaulting to zero. |
static long |
string2long(java.lang.String arg)
Converts a string to a long, defaulting to zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Utilities()
| Method Detail |
public static java.lang.String fixAmpersands(java.lang.String in)
in - The string to fix.
public static java.lang.String getNextParameterSeparator(java.lang.String url)
url - The url to test.
public static java.lang.String getShortString(java.lang.String inString,
int maxLength)
inString - The string to test.maxLength - The maximum number of characters.
public static int getNextObjectId()
public static java.lang.String encodeUTF8(java.lang.String inString)
inString - The unencoded string.
public static java.lang.String decodeUTF8(java.lang.String inString)
inString - The encoded string.
public static java.lang.Integer cloneInteger(java.lang.Integer i)
i - The original Integer.
public static java.lang.String getRelativeUrl(java.lang.String inUrl,
java.lang.String context,
java.lang.String framework)
inUrl - The original URL.context - The URL path of the configuration document.framework - The URL path of the IMF instance.
public static java.lang.String getArg(java.lang.String argString,
java.lang.String key)
argString - The argument string to parse.key - The parameter name.
public static java.lang.String intToHex(int number,
int length)
number - The number to decode.length - The length of the resulting string.
public static java.lang.String removeSpaces(java.lang.String inString)
inString - The original string.
public static java.lang.String escapeQuery(java.lang.String inString)
inString - The string to escape.
public static java.lang.String removeInvalidCharacters(java.lang.String inStr,
java.lang.String validChars)
inStr - The original string.validChars - The list of valid characters.
public static java.lang.String replaceSubstring(java.lang.String str,
java.lang.String pattern,
java.lang.String replace)
str - The original string.pattern - The substring to replace.replace - The text to replace it with.
public static double string2double(java.lang.String arg)
arg - The number string.
public static long string2long(java.lang.String arg)
arg - The number string.
public static int string2int(java.lang.String arg)
arg - The number string.
public static boolean string2boolean(java.lang.String arg)
arg - The number string.
public static java.awt.Color string2color(java.lang.String arg)
arg - A comma separated string containing integer red, green, blue and
optionally alpha values.
public static int getDegrees(double dd)
dd - The decimal degree value.
public static int getMinutes(double dd)
dd - The decimal degree value.
public static double getSeconds(double dd)
dd - The decimal degree value.
public static java.lang.String getLatitudeString(double dd)
dd - The decimal degrees.
public static java.lang.String getLatitudeString(double dd,
java.util.Locale locale)
dd - The decimal degrees.locale - The locale used for formatting.
public static java.lang.String getLatitudeString(double dd,
double scaleFactor,
java.util.Locale locale)
dd - The decimal degrees.scaleFactor - The scale factor, used to limit detail.locale - The locale used for formatting.
public static java.lang.String getLongitudeString(double dd)
dd - The decimal degrees.
public static java.lang.String getLongitudeString(double dd,
java.util.Locale locale)
dd - The decimal degrees.locale - The locale used for formatting.
public static java.lang.String getLongitudeString(double dd,
double scaleFactor,
java.util.Locale locale)
dd - The decimal degrees.scaleFactor - The scale factor, used to limit detail.locale - The locale used for formatting.
public static java.lang.String formatDD(double dd,
boolean isLat,
double scaleFactor,
java.util.Locale locale)
dd - The decimal degrees.isLat - True if latitude formatting is requested, otherwise false.scaleFactor - The scale factor, used to limit detail.locale - The locale used for formatting.
public static java.lang.String getCardinalAngle(double degrees)
degrees - The input degrees.
public static double getAngle(java.lang.String angleString)
angleString - The angle string.
public static boolean sendEmail(java.lang.String mailServer,
java.lang.String logon,
java.lang.String fromAddress,
java.lang.String toAddress,
java.lang.String subject,
java.lang.String message)
mailServer - The mail server name.logon - The server login to send mail.fromAddress - The sender's e-mail address.toAddress - The recipient's e-mail address.subject - The subject.message - The message content.
public static Envelope getCopy(Envelope o)
o - The original object.
public static Line getCopy(Line o)
o - The original object.
public static Point getCopy(Point o)
o - The original object.
public static Points getCopy(Points o)
o - The original object.
public static Polygon getCopy(Polygon o)
o - The original object.
public static java.awt.Color getCopy(java.awt.Color o)
o - The original object.
public static Color getCopy(Color o)
o - The original object.
public static Feature getCopy(Feature o)
o - The original object.
public static java.awt.Font getCopy(java.awt.Font o)
o - The original object.
public static java.lang.String getCopy(java.lang.String o)
o - The original object.
public static java.lang.Boolean getCopy(java.lang.Boolean o)
o - The original object.
public static java.util.ArrayList getCopy(java.util.ArrayList o)
o - The original object.
public static java.util.HashMap getCopy(java.util.HashMap o)
o - The original object.
public static java.util.HashSet getCopy(java.util.HashSet o)
o - The original object.
public static java.lang.String initcap(java.lang.String value)
value - The input string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||