I would like to cut a Java String when this String length is > 50, and add \"...\" at the end of the string.
Example :
I have the f
StringUtils.abbreviate("abcdefg", 6);
This will give you the following result: abc...
abc...
Where 6 is the needed length, and "abcdefg" is the string that needs to be abbrevieted.