Package org.bidib.wizard.utils
Class TextUtils
- java.lang.Object
-
- org.bidib.wizard.utils.TextUtils
-
public class TextUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description TextUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringwordWrap(String in, int length)Performs word wrapping.
-
-
-
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-wrappedlength- maximum number of characters in a line
-
-