org.jpop.util
Class StringUtils

java.lang.Object
  extended byorg.jpop.util.StringUtils

public class StringUtils
extends java.lang.Object

Utlities to handle strings not provided in the String class

Version:
1.0
Author:
dsm

Field Summary
static java.lang.String nl
          The value of the newline for the local computer
 
Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String replace(java.lang.String src, java.lang.String orig, java.lang.String repl)
          Replace instances of something in a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nl

public static final java.lang.String nl
The value of the newline for the local computer

Constructor Detail

StringUtils

public StringUtils()
Method Detail

replace

public static java.lang.String replace(java.lang.String src,
                                       java.lang.String orig,
                                       java.lang.String repl)
Replace instances of something in a string

Parameters:
src - The original string
orig - The text to seek
repl - The new test
Returns:
A string with all instances of orig replaced by repl