public class FormatWrapText extends Object implements Function<String,String>
| Constructor and Description |
|---|
FormatWrapText()
Wrap the paragraphs to 105 characters terminated by system-specific line separator
without any prefix and default value.
|
FormatWrapText(String prefix,
String defaultVal)
Wrap the paragraphs to 105 characters terminated by "line.separator"
|
FormatWrapText(String prefix,
String defaultVal,
int maxLineLength)
Wrap the paragraphs to maxLineLength characters terminated by "line.separator"
|
FormatWrapText(String prefix,
String defaultVal,
int maxLineLength,
String lineSeparator)
Wrap the paragraphs to maxLineLength characters terminated by lineSeparator
|
| Modifier and Type | Method and Description |
|---|---|
String |
execute(String line)
Adds the prefix to all lines and replaces the line terminators LF or CR LF with the system
specific line terminator (CR LF or LF only).
|
public FormatWrapText()
public FormatWrapText(String prefix, String defaultVal)
prefix - not null is prefix to be inserted in the beginning of each new linedefaultVal - non null is the value to prefix the first linepublic FormatWrapText(String prefix, String defaultVal, int maxLineLength)
prefix - not null is prefix to be inserted in the beginning of each new linedefaultVal - non null is the value to prefix the first linemaxLineLength - > 0public FormatWrapText(String prefix, String defaultVal, int maxLineLength, String lineSeparator)
prefix - not null is prefix to be inserted in the beginning of each new linedefaultVal - non null is the value to prefix the first linemaxLineLength - > 0lineSeparator - not nullCopyright © 2001–2018 MDA Tools. All rights reserved.