Package org.springframework.shell.table
Class DelimiterTextWrapper
java.lang.Object
org.springframework.shell.table.DelimiterTextWrapper
- All Implemented Interfaces:
TextWrapper
A Text wrapper that wraps at "word" boundaries. The default delimiter is the space character.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DelimiterTextWrapper
public DelimiterTextWrapper() -
DelimiterTextWrapper
public DelimiterTextWrapper(char delimiter)
-
-
Method Details
-
wrap
- Specified by:
wrap
in interfaceTextWrapper
- Parameters:
original
- the text in its original formcolumnWidth
- the width to conform to- Returns:
- a list of lines where each line length MUST be equal to
columnWidth
(padding with spaces if appropriate). There is no constraint on the number of lines returned however (typically, will be greater than the input number if wrapping occurred).
-