Class StringUtils

java.lang.Object
io.opencensus.internal.StringUtils

public final class StringUtils extends Object
Internal utility methods for working with tag keys, tag values, and metric names.
  • Constructor Details

    • StringUtils

      private StringUtils()
  • Method Details

    • isPrintableString

      public static boolean isPrintableString(String str)
      Determines whether the String contains only printable characters.
      Parameters:
      str - the String to be validated.
      Returns:
      whether the String contains only printable characters.
    • isPrintableChar

      private static boolean isPrintableChar(char ch)