Class StringUtils
- java.lang.Object
-
- org.apache.maven.surefire.api.util.internal.StringUtils
-
public final class StringUtils extends Object
Common
java.lang.String
manipulation routines.
Originally from Turbine and the GenerationJavaCore library.
NOTE: This class is not part of any api and is public purely for technical reasons !- Since:
- 1.0
- Version:
- $Id: StringUtils.java 8001 2009-01-03 13:17:09Z vsiveton $
- Author:
- Jon S. Stevens, Daniel Rall, Greg Coladonato, Henri Yandell, Ed Korthof, Rand McNeely, Stephen Colebourne, Fredrik Westermarck, Holger Krauth, Alexander Day Chaffee, Vincent Siveton
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
split(String text, String separator)
static boolean
startsWith(StringBuffer buffer, String pattern)
Determines ifbuffer
starts with specific literal(s).
-
-
-
Field Detail
-
NL
public static final String NL
-
-
Method Detail
-
startsWith
public static boolean startsWith(StringBuffer buffer, String pattern)
Determines ifbuffer
starts with specific literal(s).- Parameters:
buffer
- Examined StringBufferpattern
- a pattern which should start inbuffer
- Returns:
true
if buffer's literal starts with givenpattern
, or both are empty.
-
-