Package com.github.toolarium.common.util
Class TextUtil
java.lang.Object
com.github.toolarium.common.util.TextUtil
Text utility
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionblockText(StringBuilder inputText, int maxLen) Create a block textblockText(StringBuilder inputIndent, StringBuilder inputText, int maxLen) Create a block textblockText(StringBuilder inputIndent, StringBuilder inputTitle, int maxTitelLen, StringBuilder inputText, int maxTextLen) Create a block textCreate a block textCreate a block textCreate a block textstatic TextUtilGet the instanceprepareInput(String input) Prepare input stringprepareInput(StringBuilder input) Prepare input string
-
Field Details
-
NL
NL- See Also:
-
SPACE
SPACE- See Also:
-
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
prepareInput
Prepare input string- Parameters:
input- the input string- Returns:
- the prepared string
-
prepareInput
Prepare input string- Parameters:
input- the input string- Returns:
- the prepared string
-
blockText
Create a block text- Parameters:
text- the textmaxLen- the max len of the text- Returns:
- the created block text
-
blockText
Create a block text- Parameters:
indent- the indentiontext- the textmaxLen- the max len of the text- Returns:
- the created block text
-
blockText
Create a block text- Parameters:
indent- the indentiontitle- the titlemaxTitelLen- the max title lentext- the textmaxLen- the max len of the text- Returns:
- the created block text
-
blockText
Create a block text- Parameters:
inputText- the textmaxLen- the max len of the text- Returns:
- the created block text
-
blockText
Create a block text- Parameters:
inputIndent- the indentioninputText- the textmaxLen- the max len of the text- Returns:
- the created block text
-
blockText
public StringBuilder blockText(StringBuilder inputIndent, StringBuilder inputTitle, int maxTitelLen, StringBuilder inputText, int maxTextLen) Create a block text- Parameters:
inputIndent- the indentioninputTitle- the titlemaxTitelLen- the max title leninputText- the textmaxTextLen- the max len of the text- Returns:
- the created block text
-