com.openexchange.mail.text
Class TextProcessing

java.lang.Object
  extended by com.openexchange.mail.text.TextProcessing

public final class TextProcessing
extends java.lang.Object

TextProcessing - Various methods for text processing

Author:
Thorben Betten

Method Summary
static java.lang.String performLineFolding(java.lang.String content, int linewrap)
          Performs the line folding after specified number of characters through parameter linewrap.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

performLineFolding

public static java.lang.String performLineFolding(java.lang.String content,
                                                  int linewrap)
Performs the line folding after specified number of characters through parameter linewrap. Occurring HTML links are excluded.

If parameter isHtml is set to true the content is returned unchanged.

Parameters:
content - The plain text content to fold
linewrap - The number of characters which may fit into a line
Returns:
The line-folded content