java.lang.Object
org.htmlparser.scanners.TagScanner
org.htmlparser.scanners.FrameScanner
- All Implemented Interfaces:
- java.io.Serializable
- public class FrameScanner
- extends TagScanner
Scans for the Frame Tag. This is a subclass of TagScanner, and is called
using a variant of the template method. If the evaluate() method returns
true, that means the given string contains an image tag. Extraction is done
by the scan method thereafter by the user of this class.
| Methods inherited from class org.htmlparser.scanners.TagScanner |
absorb, absorbLeadingBlanks, adjustScanners, createScannedNode, evaluate, extractXMLData, getFilter, getInsertedEndTag, getReplacedEndTag, insertEndTagBeforeNode, isXMLTagFound, removeChars, replaceFaultyTagWithEndTag, restoreScanners, scan, setFeedback |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrameScanner
public FrameScanner()
- Overriding the default constructor
FrameScanner
public FrameScanner(java.lang.String filter)
- Overriding the constructor to accept the filter
extractFrameLocn
public java.lang.String extractFrameLocn(org.htmlparser.tags.Tag tag,
java.lang.String url)
throws org.htmlparser.util.ParserException
- Extract the location of the image, given the string to be parsed, and the
url of the html page in which this tag exists.
extractFrameName
public java.lang.String extractFrameName(org.htmlparser.tags.Tag tag,
java.lang.String url)
getID
public java.lang.String[] getID()
- Specified by:
getID in class TagScanner
createTag
protected org.htmlparser.tags.Tag createTag(org.htmlparser.tags.data.TagData tagData,
org.htmlparser.tags.Tag tag,
java.lang.String url)
throws org.htmlparser.util.ParserException
- Description copied from class:
TagScanner
- Override this method to create your own tag type
- Overrides:
createTag in class TagScanner