Class StringBuilderUtil

java.lang.Object
com.webfirmframework.wffweb.util.StringBuilderUtil

public final class StringBuilderUtil extends Object
Since:
1.0.0
  • Method Details

    • getTrimmedString

      public static String getTrimmedString(StringBuilder sb)
      Parameters:
      sb - the StringBuilder object to create a trimmed string from it.
      Returns:
      Since:
      1.0.0 initial implementation., 3.0.15 It is unicode aware.
    • strip

      public static StringBuilder strip(StringBuilder sb)
      Parameters:
      sb - StringBuilder object to be stripped.
      Returns:
      the same StringBuilder object after stripped.
      Since:
      3.0.15
    • replaceFirst

      public static StringBuilder replaceFirst(StringBuilder from, String thisString, String with)
      NB: Only for internal purpose. Not recommended for developer use.
      Parameters:
      from - content to be replaced from this StringBuilder
      thisString - the string to be replaced
      with - with this string the thisString will be replaced.
      Returns:
      the modified StringBuilder which is the same from.
      Since:
      3.0.15