Package com.plccom.opc.ua.client.utils
Class UaTrimUtils
- java.lang.Object
-
- com.plccom.opc.ua.client.utils.UaTrimUtils
-
public class UaTrimUtils extends Object
Utility methods for trimming specific characters from the start and/or end of strings.
-
-
Constructor Summary
Constructors Constructor Description UaTrimUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringTrim(String input, String charsToTrim)Removes all occurrences of the specified characters from both ends of the string.static StringTrimEnd(String input, String charsToTrim)Removes all occurrences of the specified characters from the end of the string.static StringTrimStart(String input, String charsToTrim)Removes all occurrences of the specified characters from the start of the string.
-
-
-
Method Detail
-
TrimEnd
public static String TrimEnd(String input, String charsToTrim)
Removes all occurrences of the specified characters from the end of the string.- Parameters:
input- the input stringcharsToTrim- the characters to remove (used inside a regex character class)- Returns:
- the trimmed string
-
TrimStart
public static String TrimStart(String input, String charsToTrim)
Removes all occurrences of the specified characters from the start of the string.- Parameters:
input- the input stringcharsToTrim- the characters to remove (used inside a regex character class)- Returns:
- the trimmed string
-
-