Class TextUtils


  • public class TextUtils
    extends Object
    • Constructor Detail

      • TextUtils

        public TextUtils()
    • Method Detail

      • 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