public class HarvestUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
cutSummaryInWords(String source)
Cuts the summary in words until #CHARLIMIT is reached.
|
static String |
removeLinks(String source)
Remove links from the source string (message content).
|
static String |
summarize(String toSummarize)
Simple helper function to get a shortened version of the message body.
|
public static String summarize(String toSummarize)
toSummarize
- Message body or content.public static String cutSummaryInWords(String source)
source
- Source string for the summary.public static String removeLinks(String source)
source
- Source string which may contain links.