Package io.opencensus.internal
Class StringUtils
java.lang.Object
io.opencensus.internal.StringUtils
Internal utility methods for working with tag keys, tag values, and metric names.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isPrintableChar
(char ch) static boolean
isPrintableString
(String str) Determines whether theString
contains only printable characters.
-
Constructor Details
-
StringUtils
private StringUtils()
-
-
Method Details
-
isPrintableString
Determines whether theString
contains only printable characters.- Parameters:
str
- theString
to be validated.- Returns:
- whether the
String
contains only printable characters.
-
isPrintableChar
private static boolean isPrintableChar(char ch)
-