public final class StringUtils extends Object
Common java.lang.String
manipulation routines.
Originally from Turbine and the GenerationJavaCore library.
Modifier and Type | Method and Description |
---|---|
static String[] |
split(String text,
String separator) |
static boolean |
startsWith(StringBuffer buffer,
String pattern)
Determines if
buffer starts with specific literal(s). |
public static final String NL
public static boolean startsWith(StringBuffer buffer, String pattern)
buffer
starts with specific literal(s).buffer
- Examined StringBufferpattern
- a pattern which should start in buffer
true
if buffer's literal starts with given pattern
, or both are empty.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.