public class MultilineUtil extends Object
| Constructor and Description |
|---|
MultilineUtil() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
removeInnerEmptyLines(String[] lines)
Same as
removeInnerEmptyLines(lines, false) |
String[] |
removeInnerEmptyLines(String[] lines,
boolean keepAll)
Helper method to remove empty lines on a multiline field.
|
public String[] removeInnerEmptyLines(String[] lines)
removeInnerEmptyLines(lines, false)lines - removeInnerEmptyLines(String[], boolean)public String[] removeInnerEmptyLines(String[] lines, boolean keepAll)
lines - an non null array of lines to processkeepAll - if true this method will have the effect of sorting empty lines to the end, if false, empty lines will be removed