foundry-0.9.1

foundry.stringutils
Class StringUtilities

java.lang.Object
  |
  +--foundry.stringutils.StringUtilities

public final class StringUtilities
extends Object


Field Summary
private static String[] EMPTY_STRING_ARRAY
           
static String LINE_SEPARATOR
           
 
Constructor Summary
private StringUtilities()
           
 
Method Summary
(package private) static void ()
           
static String compressWhitespace(String source)
           
static void leftPad(StringBuffer source, char[] characters, int howMany)
           
static void leftPad(StringBuffer source, char character, int howMany)
           
static void leftPad(StringBuffer source, int pad, int howMany)
           
static void leftPad(StringBuffer source, Object pad, int howMany)
           
static void leftPad(StringBuffer source, String string, int howMany)
           
static String[] linesToStringArray(String multiLineString)
           
static String repeat(char[] characters, int howMany)
           
static String repeat(char c, int howMany)
           
static String repeat(int number, int howMany)
           
static String repeat(Object object, int howMany)
           
static String repeat(String string, int howMany)
           
static void rightPad(StringBuffer source, char[] characters, int howMany)
           
static void rightPad(StringBuffer source, char character, int howMany)
           
static void rightPad(StringBuffer source, int pad, int howMany)
           
static void rightPad(StringBuffer source, Object pad, int howMany)
           
static void rightPad(StringBuffer source, String string, int howMany)
           
static String stringArrayToLines(String[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING_ARRAY

private static final String[] EMPTY_STRING_ARRAY

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Constructor Detail

StringUtilities

private StringUtilities()
Method Detail

static void ()

linesToStringArray

public static final String[] linesToStringArray(String multiLineString)

stringArrayToLines

public static final String stringArrayToLines(String[] array)

leftPad

public static final void leftPad(StringBuffer source,
                                 char character,
                                 int howMany)

leftPad

public static final void leftPad(StringBuffer source,
                                 char[] characters,
                                 int howMany)

leftPad

public static final void leftPad(StringBuffer source,
                                 String string,
                                 int howMany)

leftPad

public static final void leftPad(StringBuffer source,
                                 Object pad,
                                 int howMany)

leftPad

public static final void leftPad(StringBuffer source,
                                 int pad,
                                 int howMany)

rightPad

public static final void rightPad(StringBuffer source,
                                  char character,
                                  int howMany)

rightPad

public static final void rightPad(StringBuffer source,
                                  char[] characters,
                                  int howMany)

rightPad

public static final void rightPad(StringBuffer source,
                                  String string,
                                  int howMany)

rightPad

public static final void rightPad(StringBuffer source,
                                  Object pad,
                                  int howMany)

rightPad

public static final void rightPad(StringBuffer source,
                                  int pad,
                                  int howMany)

repeat

public static final String repeat(String string,
                                  int howMany)

repeat

public static final String repeat(char[] characters,
                                  int howMany)

repeat

public static final String repeat(char c,
                                  int howMany)

repeat

public static final String repeat(int number,
                                  int howMany)

repeat

public static final String repeat(Object object,
                                  int howMany)

compressWhitespace

public static final String compressWhitespace(String source)

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson