nl.toolforge.core.util.lang
Class NiftyStringUtils
java.lang.Object
nl.toolforge.core.util.lang.NiftyStringUtils
- public final class NiftyStringUtils
- extends java.lang.Object
Extras to org.apache.commons.lang.StringUtils.
- Version:
- $Id: NiftyStringUtils.java,v 1.2 2004/11/02 23:57:07 asmedes Exp $
- Author:
- D.A. Smedes
|
Method Summary |
static java.lang.String |
deleteWhiteSpaceExceptOne(java.lang.String str)
Removes blocks of spaces, leaving one intact. |
static java.lang.String[] |
split(java.lang.String str,
java.lang.String wrapString,
int wrapCount)
Splits a String into an Array of Strings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NiftyStringUtils
public NiftyStringUtils()
split
public static java.lang.String[] split(java.lang.String str,
java.lang.String wrapString,
int wrapCount)
- Splits a
String into an Array of Strings. Each String is
wrapped maximum at position wrapCount, but taking into account the last position of
wrapChar.
- Parameters:
str - wrapString - wrapCount -
- Returns:
deleteWhiteSpaceExceptOne
public static java.lang.String deleteWhiteSpaceExceptOne(java.lang.String str)
- Removes blocks of spaces, leaving one intact.
- Parameters:
str -
- Returns:
Copyright © 2002-2006 Toolforge. All Rights Reserved.