Package com.uc4.util

Class StringLengthUtil

java.lang.Object
com.uc4.util.StringLengthUtil

public class StringLengthUtil extends Object
This utility returns the length of a string in UTF-8
  • Method Details

    • getUtf8BytesLength

      public static int getUtf8BytesLength(String s)
      Returns the amount of bytes of the passed String in bytes
      Parameters:
      s - String to be checked
      Returns:
      amount of bytes of the passed String in bytes