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

Quick Search    Search Deep

dods.util
Class Util  view Util download Util.java

java.lang.Object
  extended bydods.util.Util

public final class Util
extends java.lang.Object


Constructor Summary
protected Util()
          Constructor.
 
Method Summary
static java.lang.String replace(java.lang.String main_value, java.lang.String search_value, java.lang.String sub_value)
          This method replaces all instances of one string to another string within the main string.
static java.util.Date stringToDate(java.lang.String datestr)
          This method attempts to convert the string passed into a date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

protected Util()
Constructor. Don't want anyone to invoke one of these.

Method Detail

replace

public static java.lang.String replace(java.lang.String main_value,
                                       java.lang.String search_value,
                                       java.lang.String sub_value)
This method replaces all instances of one string to another string within the main string. For example, if the main string is "Foo bar baz", and the string to replace is "ba" with "cu", then the returned result will be "Foo cur cuz".


stringToDate

public static java.util.Date stringToDate(java.lang.String datestr)
This method attempts to convert the string passed into a date.