|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.goerntkai.toolbox.misc.StringUtil
Provides some tasks for dealing with String
s.
Method Summary | |
static java.lang.String |
leadWithCharacter(char theCharacter,
java.lang.String theString,
int theLength)
Adds leading characters to a given String. |
static java.lang.String |
leadWithSpaces(java.lang.String theString,
int theLength)
Adds leading spaces to a given String. |
static java.lang.String |
leadWithZeroes(int theString,
int theLength)
Adds leading zeroes to a given integer. |
static java.lang.String |
leadWithZeroes(java.lang.String theString,
int theLength)
Adds leading zeroes to a given String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String leadWithCharacter(char theCharacter, java.lang.String theString, int theLength)
Adds leading characters to a given String. If the string is already
longer than the given length it will be cut down to it. If the string
is null
the returned string will only consist of the given
characters.
theCharacter
- to enlengthen the string withtheString
- to enlengthentheLength
- to enlengthen the string to
public static java.lang.String leadWithSpaces(java.lang.String theString, int theLength)
Adds leading spaces to a given String. If the string is already
longer than the given length it will be cut down to it. If the string
is null
the returned string will only consist of
spaces.
theString
- to enlengthentheLength
- to enlengthen the string to
public static java.lang.String leadWithZeroes(int theString, int theLength)
Adds leading zeroes to a given integer. If the integer is already
longer than the given length it will be cut down to it. If the integer
is null
the returned string will only consist of
zeroes.
theString
- to enlengthentheLength
- to enlengthen the string to
public static java.lang.String leadWithZeroes(java.lang.String theString, int theLength)
Adds leading zeroes to a given String. If the string is already
longer than the given length it will be cut down to it. If the string
is null
the returned string will only consist of
zeroes.
theString
- to enlengthentheLength
- to enlengthen the string to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |