com.openexchange.mail.text
Class Html2TextConverter

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

public final class Html2TextConverter
extends java.lang.Object

Html2TextConverter

Author:
Thorben Betten

Constructor Summary
Html2TextConverter()
           
 
Method Summary
 java.lang.String convert(java.lang.String htmlContent)
          Converts given HTML content into plain text
 java.lang.String convertWithQuotes(java.lang.String htmlContent)
          Converts given HTML content into plain text and turns blockquotes into simple quotes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Html2TextConverter

public Html2TextConverter()
Method Detail

convertWithQuotes

public java.lang.String convertWithQuotes(java.lang.String htmlContent)
                                   throws java.io.IOException
Converts given HTML content into plain text and turns blockquotes into simple quotes

Returns:
plain text version of given HTML content
Throws:
java.io.IOException

convert

public java.lang.String convert(java.lang.String htmlContent)
                         throws java.io.IOException
Converts given HTML content into plain text

Returns:
plain text version of given HTML content
Throws:
java.io.IOException