Class TextUtils

java.lang.Object
org.bidib.wizard.utils.TextUtils

public class TextUtils extends Object
  • Constructor Details

    • TextUtils

      public TextUtils()
  • Method Details

    • wordWrap

      public static String wordWrap(String in, int length)
      Performs word wrapping. Returns the input string with long lines of text cut (between words) for readability. For the original code see Java Word Wrap Algorithm
      Parameters:
      in - text to be word-wrapped
      length - maximum number of characters in a line