public class WordWrap
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
wordWrap(java.lang.String input,
int width,
java.util.Locale locale)
Reformats a string where lines that are longer than width
are split apart at the earliest wordbreak or at maxLength, whichever is
sooner.
|
public static java.lang.String wordWrap(java.lang.String input,
int width,
java.util.Locale locale)
input - the String to reformat.width - the maximum length of any one line.Copyright © 2015. All Rights Reserved.