Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.app.view
Class StringUtility  view StringUtility download StringUtility.java

java.lang.Object
  extended byopenfuture.bugbase.app.view.StringUtility

public class StringUtility
extends java.lang.Object

String Utility.

Created: Sat Feb 05 20:10:01 2000

Version:
$Revision: 1.3 $

Field Summary
private static java.text.SimpleDateFormat timestampFormat
          Create the format for a timestamp.
 
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
 

Field Detail

timestampFormat

private static final java.text.SimpleDateFormat timestampFormat
Create the format for a timestamp.

Constructor Detail

StringUtility

public StringUtility()
Method Detail

dateToString

public static java.lang.String dateToString(java.util.Date date)
Describe dateToString method here.


stringToDate

public static java.util.Date stringToDate(java.lang.String s)
                                   throws java.text.ParseException
Parses a Date from a String.


dateToTimestamp

public static java.lang.String dateToTimestamp(java.util.Date date)
Converts a date into a timestamp string.


timestampToDate

public static java.util.Date timestampToDate(java.lang.String s)
Converts the string representation of a date into a Date object.


escapeChar

public static java.lang.String escapeChar(java.lang.String s,
                                          char critical,
                                          char escapeChar)
Escape all occurrences of critical with the given escape character.


removeEscapes

public static java.lang.String removeEscapes(java.lang.String s,
                                             char escapeChar)
Remove all occurrences of escape characters.