|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hops.common.util
public class util
| Constructor Summary | |
|---|---|
util()
|
|
| Method Summary | |
|---|---|
static boolean |
containsIgnoreCase(java.util.ArrayList ar,
java.lang.String v)
arrylist contains with ignore case |
static java.lang.String |
HopsReplacement(java.lang.String doc,
java.lang.String strMark,
java.lang.String strText)
This function is as String.replace() but it does manyally the replacement since the java implementation has problems with certain characters |
static java.util.HashMap |
loadFile(java.lang.String file)
Loads a file |
static java.util.HashMap |
loadMultiFile(java.lang.String nlgmessages)
load the file: Each property has more than one value |
static java.lang.String |
Read()
reads from the console |
static java.lang.Object |
resizeArray(java.lang.Object oldArray,
int newSize)
Reallocates an array with a new size, and copies the contents of the old array to the new array. |
static double |
truncate(double x)
truncate double |
static void |
Write(java.lang.String _sent)
writes to the console |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public util()
| Method Detail |
|---|
public static void Write(java.lang.String _sent)
_sent - the messagepublic static java.lang.String Read()
public static double truncate(double x)
public static java.lang.Object resizeArray(java.lang.Object oldArray,
int newSize)
oldArray - the old array, to be reallocated.newSize - the new array size.
public static java.util.HashMap loadFile(java.lang.String file)
throws java.lang.Exception
file - filename
java.lang.Exception
public static java.util.HashMap loadMultiFile(java.lang.String nlgmessages)
throws java.lang.Exception
nlgmessages - the properties file
java.lang.Exception
public static boolean containsIgnoreCase(java.util.ArrayList ar,
java.lang.String v)
public static java.lang.String HopsReplacement(java.lang.String doc,
java.lang.String strMark,
java.lang.String strText)
doc - the document to replacestrMark - the mark to findstrText - the new text to put instead of strMark
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||