com.googlecode.flyway.core.util
Class StringUtils

java.lang.Object
  extended by com.googlecode.flyway.core.util.StringUtils

public class StringUtils
extends java.lang.Object

Various string-related utilities.


Method Summary
static java.lang.String trimOrPad(java.lang.String str, int length)
          Trims or pads (with spaces) this string, so it has this exact length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

trimOrPad

public static java.lang.String trimOrPad(java.lang.String str,
                                         int length)
Trims or pads (with spaces) this string, so it has this exact length.

Parameters:
str - The string to adjust.
length - The exact length to reach.
Returns:
The adjusted string.


Copyright © 2010. All Rights Reserved.