|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.util.HtmlBodyExtractor
This class will read a File or String that contains HTML and return the BODY contents as well as an array of Strings containing CSS links and Styles.
This class can be used to obtain the "useable" HTML within a .html file so it can be safely embedded within the body of another HTML document.
If the HTML and BODY tags are not encountered during the parsing of the stage, then the whole of the input will be captured as safe content text.
To obtain the safe HTML text called the getHtmlText() method.
Field Summary | |
protected java.util.List |
cssList
|
protected java.lang.String |
htmlText
|
protected java.io.File |
srcFile
|
protected java.lang.String |
srcString
|
Constructor Summary | |
HtmlBodyExtractor()
Constructs an empty HtmlBodyExtractor. |
|
HtmlBodyExtractor(java.io.File newHtmlFile)
Constructs a HtmlBodyExtractor that reads the contents of the file |
|
HtmlBodyExtractor(java.lang.String newHtmText)
Constructs a HtmlBodyExtractor that reads the contents of the string |
Method Summary | |
java.util.List |
getCssList()
Returns a list of Strings that represent external CSS LINKs files from the HTML as well as STYLE tag text. |
java.lang.String |
getHtmlText()
Returns the Html BODY content text. |
void |
setHtmlText(java.io.File newHtmlFile)
Sets in the File containing the HTML Text to be parsed. |
void |
setHtmlText(java.lang.String newHtmlText)
Sets in the String containing the HTML Text to be parsed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List cssList
protected java.lang.String htmlText
protected java.io.File srcFile
protected java.lang.String srcString
Constructor Detail |
public HtmlBodyExtractor()
public HtmlBodyExtractor(java.io.File newHtmlFile) throws java.io.IOException
public HtmlBodyExtractor(java.lang.String newHtmText) throws java.io.IOException
Method Detail |
public java.util.List getCssList()
public java.lang.String getHtmlText()
public void setHtmlText(java.io.File newHtmlFile) throws java.io.IOException
newHtmlFile
- java.io.File to be processed
java.io.IOException
public void setHtmlText(java.lang.String newHtmlText) throws java.io.IOException
newHtmlText
- java.lang.String
java.io.IOException
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |