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
  • Field Details

    • NL

      public static final String NL
  • Method Details

    • split

      public static String[] split(String text, String separator)
    • startsWith

      public static boolean startsWith(StringBuffer buffer, String pattern)
      Determines if buffer starts with specific literal(s).
      Parameters:
      buffer - Examined StringBuffer
      pattern - a pattern which should start in buffer
      Returns:
      true if buffer's literal starts with given pattern, or both are empty.