|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.boot.util.Util
class: CDBUtil
| Method Summary | |
static void |
close(java.io.InputStream is,
java.lang.String id)
Closes as stream and logs an eventual Exception. |
static void |
close(java.io.OutputStream os,
java.lang.String id)
Closes as stream and logs an eventual Exception. |
boolean |
compare(java.lang.String s1,
java.lang.String s2,
boolean ignore)
Compare strings that can be null |
java.lang.String |
fixPath(java.lang.String in)
Clean up a string by removing characters that can't/should not appear in a local file_ name. |
void |
fixPath(java.lang.StringBuffer path)
Clean up a string by removing characters that can't/should not appear in a local file_ name. |
static Util |
getInstance()
Get the single instance of Util. |
java.util.Locale |
getLocale(java.lang.String localeStr)
Parse a Locale from String |
void |
removeApplicationRecursive(java.io.File filedir,
Logger log_)
remove a directory and all itīs content |
boolean |
urlEquals(java.net.URL u1,
java.net.URL u2)
Compares a URL using string compare of its protocol, host, port, path, query, and anchor. |
java.lang.StringBuffer |
urlToPath(java.net.URL location)
Converts a URL into a local, relative path representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Util getInstance()
public java.lang.StringBuffer urlToPath(java.net.URL location)
location - the url
public java.util.Locale getLocale(java.lang.String localeStr)
localeStr - the locale string to be parsed.
public boolean compare(java.lang.String s1,
java.lang.String s2,
boolean ignore)
s1 - string-inputs2 - string-inputignore - true will ignore case
public boolean urlEquals(java.net.URL u1,
java.net.URL u2)
u1 - compare input 1u2 - compare input 2
public java.lang.String fixPath(java.lang.String in)
in - the file path to fix
public void fixPath(java.lang.StringBuffer path)
path - the path to fix. Bad characters are replaced in this StringBuffer.
public void removeApplicationRecursive(java.io.File filedir,
Logger log_)
filedir - the directory to removelog_ - where to report any errors
public static void close(java.io.OutputStream os,
java.lang.String id)
os - the output stream to closeid - identifieing the stream e.g.: the filename
public static void close(java.io.InputStream is,
java.lang.String id)
is - the input stream to closeid - identifieing the stream e.g.: the filename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||