public final class TextProcessing
extends java.lang.Object
TextProcessing - Various methods for text processing| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
extractTextFrom(MailMessage mail)
Extracts plain-text content from specified mail.
|
static java.lang.String |
performLineFolding(java.lang.String content,
int linewrap)
Performs the line folding after specified number of characters through parameter
linewrap. |
public static java.lang.String performLineFolding(java.lang.String content,
int linewrap)
linewrap. Occurring HTML links are
excluded.
If parameter isHtml is set to true the content is returned unchanged.
content - The plain text content to foldlinewrap - The number of characters which may fit into a linepublic static java.lang.String extractTextFrom(MailMessage mail) throws com.openexchange.exception.OXException
mail - The mailcom.openexchange.exception.OXException - If text extraction fails