public class HTMLPage extends ParsedHTML
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLPage.Scriptable
scriptable for HTML Page
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExternalStyleSheet()
Returns the location of the linked stylesheet in the head
|
String[] |
getMetaTagContent(String attribute,
String attributeValue)
Retrieves the "content" of the meta tags for a key pair attribute-attributeValue.
|
String |
getOnLoadEvent()
Returns the onLoad event script.
|
String |
getTitle()
Returns the title of the page.
|
void |
parse(String text,
URL pageURL)
parse the given test with the given URL
|
getApplets, getDOM, getElementNames, getElementsWithAttribute, getElementsWithName, getElementWithID, getFirstMatchingForm, getFirstMatchingLink, getFirstMatchingTable, getFirstMatchingTextBlock, getForms, getFormWithID, getFormWithName, getFrames, getImages, getImageWithAltText, getImageWithName, getImageWithSource, getLinks, getLinkWith, getLinkWithID, getLinkWithImageText, getLinkWithName, getMatchingForms, getMatchingLinks, getMatchingTables, getNextTextBlock, getTables, getTableStartingWith, getTableStartingWithPrefix, getTableWithID, getTableWithSummary, getTextBlocks, isWebLink, toStringpublic String getTitle() throws SAXException
SAXExceptionpublic String getOnLoadEvent() throws SAXException
SAXExceptionpublic String getExternalStyleSheet() throws SAXException
SAXExceptionpublic String[] getMetaTagContent(String attribute, String attributeValue)
this can be used like this
getMetaTagContent("name","robots") will return { "index","follow" }
getMetaTagContent("http-equiv","Expires") will return { "now" }
public void parse(String text, URL pageURL) throws SAXException, IOException
text - pageURL - SAXExceptionIOExceptionCopyright © 2012. All Rights Reserved.