Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
Reality Interface Classes: Class Util (JReal) (util.html)
|
Reality Interface Classes | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.util.Util
Utility methods with no appropriate class
Constructor Summary | |
Util()
|
Method Summary | |
static java.lang.String | escape(java.lang.String str) Encode a Java Script escape string. |
static java.util.Properties | loadPropertyFile(java.lang.String name) Create a new properties class and load it with data from a property file. |
static java.lang.String | locateFile(java.lang.String name) Search for given file name down class path |
static java.lang.String | toHex(byte B) Convert byte to hex string |
static java.lang.String | unescape(java.lang.String str) Decode a Java Script escape() string. |
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.util.Properties loadPropertyFile(java.lang.String name) throws java.io.IOException
Searches for file name down class path.
See java.util.Properties class for more information.
name
- Name of property file to load.public static java.lang.String locateFile(java.lang.String name) throws java.io.IOException
name
- property file namepublic static java.lang.String unescape(java.lang.String str)
Strings passed through HTTP requests are often encoded to ensure they do not cause confusion. This is especially true of cookie values.
Java Script uses the escape() method to convert problem characters into %XX format where XX is the ASCII value of the character.
This method decodes these strings replacing the escape sequences with the original characters. It is fully Java Script escape() compatible.
str
- Escaped input stringpublic static java.lang.String escape(java.lang.String str)
Strings passed through HTTP requests are often encoded to ensure they do not cause confusion. This is especially true of cookie values.
Java Script uses the escape() method to convert problem characters into %XX format where XX is the ASCII value of the character.
This method emulates the Java Script escape() method for characters that cause problems in cookie values. It is fully Java Script escape() compatible.
str
- Plain input stringpublic static java.lang.String toHex(byte B)
B
- byte to encode
| Reality Interface Classes | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |