public final class StringHelpers
extends java.lang.Object
| Constructor and Description |
|---|
StringHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
splitLines(java.lang.String input,
int maxLength,
java.lang.String prefix)
Split the input string into lines while preserving the full words.
|
public static java.util.List<java.lang.String> splitLines(java.lang.String input,
int maxLength,
java.lang.String prefix)
input - The input sentence.maxLength - The maximum length of a line.prefix - A prefix to add to each produced line. This will not increase the character
count per line.