Package org.apache.uima.internal.util
Class StringUtils
java.lang.Object
org.apache.uima.internal.util.StringUtils
An assorted collection of string utilities.
- Version:
- $Id: StringUtils.java,v 1.3 2001/05/30 21:41:14 goetz Exp $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
printSpaces
(int n, Writer writer) Printn
spaces towriter
.static final void
printSpaces
(int n, StringBuilder buf) Printn
spaces tobuf
.static String
replaceAll
(String aSourceString, String aPattern, String aReplaceString) Converts occurance of patterns in a sourceString with provided replacement String.static final void
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
printSpaces
Printn
spaces tobuf
.- Parameters:
n
- Number of spaces to print.buf
- Buffer to print to.
-
printSpaces
Printn
spaces towriter
.- Parameters:
n
- Number of spaces to print.writer
- Writer to print to.- Throws:
IOException
- -
-
write
- Throws:
IOException
-
replaceAll
Converts occurance of patterns in a sourceString with provided replacement String.- Parameters:
aSourceString
- - String to convertaPattern
- - pattern for matchingaReplaceString
- - replacement String for aPattern- Returns:
- - converted String
-