public class TrimString
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
END_TRIM
Characters at the end of the trim
|
Constructor and Description |
---|
TrimString() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
trimEnd(java.lang.String in)
Returns the string trimmed to the default length
|
static java.lang.String |
trimEnd(java.lang.String in,
int length)
Returns the string trimmed at the end to the length passed in as a parameter.
|
static java.lang.String |
trimMiddle(java.lang.String in)
Returns the string trimmed in the middle to the default length.
|
static java.lang.String |
trimMiddle(java.lang.String in,
int length)
Returns the string trimmed in the middle to the length passed in as a parameter.
|
public static java.lang.String trimEnd(java.lang.String in)
in
- the inpublic static java.lang.String trimEnd(java.lang.String in, int length)
in
- the inlength
- the lengthpublic static java.lang.String trimMiddle(java.lang.String in)
in
- the inpublic static java.lang.String trimMiddle(java.lang.String in, int length)
in
- the inlength
- the lengthCopyright © 2018 DS Data Systems UK Ltd.