Class MultilineUtil
- java.lang.Object
-
- com.prowidesoftware.swift.io.writer.MultilineUtil
-
public class MultilineUtil extends java.lang.ObjectHelper class to deal with swift fields that allow many lines of text
-
-
Constructor Summary
Constructors Constructor Description MultilineUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]removeInnerEmptyLines(java.lang.String[] lines)Same asremoveInnerEmptyLines(lines, false)java.lang.String[]removeInnerEmptyLines(java.lang.String[] lines, boolean keepAll)Helper method to remove empty lines on a multiline field.
-
-
-
Method Detail
-
removeInnerEmptyLines
public java.lang.String[] removeInnerEmptyLines(java.lang.String[] lines)
Same asremoveInnerEmptyLines(lines, false)- Returns:
- a String array with all nonempty lines contained in the lines array
- See Also:
removeInnerEmptyLines(String[], boolean)
-
removeInnerEmptyLines
public java.lang.String[] removeInnerEmptyLines(java.lang.String[] lines, boolean keepAll)Helper method to remove empty lines on a multiline field.- Parameters:
lines- an non null array of lines to processkeepAll- iftruethis method will have the effect of sorting empty lines to the end, iffalse, empty lines will be removed- Returns:
- a String array with all nonempty lines contained in the lines array, the string may be empty if lines is empty, or no non-empty lines are present
-
-