|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openfuture.bugbase.app.view.StringUtility
String Utility.
Created: Sat Feb 05 20:10:01 2000
Constructor Summary | |
StringUtility()
|
Method Summary | |
static java.lang.String |
dateToString(java.util.Date date)
Describe dateToString method here. |
static java.lang.String |
dateToTimestamp(java.util.Date date)
Converts a date into a timestamp string. |
static java.lang.String |
escapeChar(java.lang.String s,
char critical,
char escapeChar)
Escape all occurrences of critical with
the given escape character. |
static java.lang.String |
removeEscapes(java.lang.String s,
char escapeChar)
Remove all occurrences of escape characters. |
static java.util.Date |
stringToDate(java.lang.String s)
Parses a Date from a String . |
static java.util.Date |
timestampToDate(java.lang.String s)
Converts the string representation of a date into a Date object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtility()
Method Detail |
public static java.lang.String dateToString(java.util.Date date)
dateToString
method here.date
- a Date
valueString
valuepublic static java.util.Date stringToDate(java.lang.String s) throws java.text.ParseException
String
.s
- String containing a date entryjava.text.ParseException
- if an error occurspublic static java.lang.String dateToTimestamp(java.util.Date date)
date
- the original datepublic static java.util.Date timestampToDate(java.lang.String s)
Date
object.s
- a String
valueDate
valuepublic static java.lang.String escapeChar(java.lang.String s, char critical, char escapeChar)
critical
with
the given escape character.s
- original stringcritical
- character to be escapedescapeChar
- escape characterpublic static java.lang.String removeEscapes(java.lang.String s, char escapeChar)
s
- original stringescapeChar
- escape character
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |