Class StringUtils

java.lang.Object
org.apache.uima.internal.util.StringUtils

public class StringUtils extends Object
An assorted collection of string utilities.
Version:
$Id: StringUtils.java,v 1.3 2001/05/30 21:41:14 goetz Exp $
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • printSpaces

      public static final void printSpaces(int n, StringBuilder buf)
      Print n spaces to buf.
      Parameters:
      n - Number of spaces to print.
      buf - Buffer to print to.
    • printSpaces

      public static final void printSpaces(int n, Writer writer) throws IOException
      Print n spaces to writer.
      Parameters:
      n - Number of spaces to print.
      writer - Writer to print to.
      Throws:
      IOException - -
    • write

      public static final void write(Writer writer, String string) throws IOException
      Throws:
      IOException
    • replaceAll

      public static String replaceAll(String aSourceString, String aPattern, String aReplaceString)
      Converts occurance of patterns in a sourceString with provided replacement String.
      Parameters:
      aSourceString - - String to convert
      aPattern - - pattern for matching
      aReplaceString - - replacement String for aPattern
      Returns:
      - converted String