public class StringUtils
extends java.lang.Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
printSpaces(int n,
java.lang.StringBuffer buf)
Print
n spaces to buf. |
static void |
printSpaces(int n,
java.io.Writer writer)
Print
n spaces to writer. |
static java.lang.String |
replaceAll(java.lang.String aSourceString,
java.lang.String aPattern,
java.lang.String aReplaceString)
Converts occurance of patterns in a sourceString with provided replacement String.
|
static void |
write(java.io.Writer writer,
java.lang.String string) |
public static final void printSpaces(int n,
java.lang.StringBuffer buf)
n spaces to buf.n - Number of spaces to print.buf - Buffer to print to.public static final void printSpaces(int n,
java.io.Writer writer)
throws java.io.IOException
n spaces to writer.n - Number of spaces to print.writer - Writer to print to.java.io.IOExceptionpublic static final void write(java.io.Writer writer,
java.lang.String string)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String replaceAll(java.lang.String aSourceString,
java.lang.String aPattern,
java.lang.String aReplaceString)
aSourceString - -
String to convertaPattern - -
pattern for matchingaReplaceString - -
replacement String for aPatternCopyright © 2013. All Rights Reserved.