public static class StringEncrypter2.Util
extends java.lang.Object
implements java.io.Serializable
This inner class contains copies of various methods from the com.dpslink.base.util.Util class.
| Modifier and Type | Field and Description |
|---|---|
static int |
LEFT
Constant used for left padding.
|
static int |
RIGHT
Constant used for right padding.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
pad(java.lang.String base,
int direction,
int length,
char padChar)
Returns a string of the given length filled with the given character.
|
static java.lang.String |
padR(java.lang.String base,
int length)
Convenience method to pad a string on the right with spaces.
|
static java.lang.String |
padWithChar(int length,
char character)
Returns a string of the given length filled with the given character.
|
private static final long serialVersionUID
public static final int LEFT
public static final int RIGHT
public static java.lang.String pad(java.lang.String base,
int direction,
int length,
char padChar)
base - (String) String to be padded.direction - (int) Pad direction (left or right).length - (int) The length of the string to return.padChar - (char) The character that is to be used as a fill
character for the new string.public static java.lang.String padR(java.lang.String base,
int length)
base - (String) String to be padded.length - (int) The length of the string to return.public static java.lang.String padWithChar(int length,
char character)
length - (int) The length of the string to return.character - (char) The character that is to be used as a fill
character for the new string.