velosurf.util
Class Strings

java.lang.Object
  extended by velosurf.util.Strings

public class Strings
extends java.lang.Object

this class gathers static utility methods for strings

Author:
Claude Brisson

Field Summary
private static java.lang.String trimmed
          characters to trim.
 
Constructor Summary
Strings()
           
 
Method Summary
static java.lang.String replace(java.lang.String target, java.lang.String oldPattern, java.lang.String newPattern)
          replace a string by another inside a target string.
static java.lang.String trimSpacesAndEOL(java.lang.String target)
          trim spaces and EOL characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trimmed

private static java.lang.String trimmed
characters to trim.

Constructor Detail

Strings

public Strings()
Method Detail

replace

public static java.lang.String replace(java.lang.String target,
                                       java.lang.String oldPattern,
                                       java.lang.String newPattern)
replace a string by another inside a target string.

Parameters:
target - target string
oldPattern - old pattern
newPattern - new pattern
Returns:
result

trimSpacesAndEOL

public static java.lang.String trimSpacesAndEOL(java.lang.String target)
trim spaces and EOL characters.

Parameters:
target - target string
Returns:
the trimmed string


~ooOoo~