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