|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.util.Util
public class Util
Simple general utility class
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static String |
decode(String s,
String enc)
Decodes a string |
static String |
encode(String s,
String enc)
Encode a string with desired character encoding. |
static String |
getBaseURL(HttpServletRequest request)
|
static boolean |
getFalse(String value)
DOCUMENT ME! |
static String |
getPattern(Format f)
DOCUMENT ME! |
static String |
getRequestURL(HttpServletRequest request)
|
static boolean |
getTrue(String value)
DOCUMENT ME! |
static boolean |
isNull(String s)
Test if the input string is null or empty (does not contain any character) |
static String |
sprintf(String format,
Object[] o)
returns a formated string |
| 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 final boolean isNull(String s)
s - the string value to test
public static final String decode(String s,
String enc)
throws UnsupportedEncodingException
s - the string to encode
UnsupportedEncodingException
public static final String encode(String s,
String enc)
throws UnsupportedEncodingException
s - the string to encodeenc - the desired encoding
UnsupportedEncodingException - DOCUMENT ME!public static boolean getFalse(String value)
value - DOCUMENT ME!
public static String getPattern(Format f)
f - DOCUMENT ME!
public static boolean getTrue(String value)
value - DOCUMENT ME!
public static String sprintf(String format,
Object[] o)
format - format stringo - objects to use to format
public static String getBaseURL(HttpServletRequest request)
public static String getRequestURL(HttpServletRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||