|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.text.HTML2Text
public final class HTML2Text
HTML2Text - This class converts HTML content to valid text/plain based on HTMLEditorKit.
| Constructor Summary | |
|---|---|
HTML2Text(boolean appendHref)
Initializes a new HTML2Text with default capacity of 8192 |
|
HTML2Text(int capacity,
boolean appendHref)
Initializes a new HTML2Text |
|
| Method Summary | |
|---|---|
java.lang.String |
html2text(java.lang.String html)
Converts specified HTML content to plain text |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTML2Text(boolean appendHref)
HTML2Text with default capacity of 8192
appendHref - true to append href and src attributes' content in brackets; otherwise
false.<a href=\"www.somewhere.com\">Link<a> would be Link [www.somewhere.com]
public HTML2Text(int capacity,
boolean appendHref)
HTML2Text
capacity - The initial capacity.appendHref - true to append href and src attributes' content in brackets; otherwise
false.<a href=\"www.somewhere.com\">Link<a> would be Link [www.somewhere.com]| Method Detail |
|---|
public java.lang.String html2text(java.lang.String html)
throws java.io.IOException
html - The HTML content to convert
java.io.IOException - If an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||