java.lang.Object
org.htmlparser.scanners.TagScanner
org.htmlparser.scanners.CompositeTagScanner
org.htmlparser.scanners.TitleScanner
- All Implemented Interfaces:
- java.io.Serializable
- public class TitleScanner
- extends CompositeTagScanner
Scans title tags.
| Methods inherited from class org.htmlparser.scanners.TagScanner |
absorb, absorbLeadingBlanks, adjustScanners, createScannedNode, createTag, extractXMLData, getFilter, getInsertedEndTag, getReplacedEndTag, insertEndTagBeforeNode, isXMLTagFound, removeChars, replaceFaultyTagWithEndTag, restoreScanners, setFeedback |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MATCH_NAME
private static final java.lang.String[] MATCH_NAME
TitleScanner
public TitleScanner(java.lang.String filter)
getID
public java.lang.String[] getID()
- Specified by:
getID in class TagScanner
evaluate
public boolean evaluate(java.lang.String tagNameBeingChecked,
TagScanner previousOpenScanner)
- Description copied from class:
TagScanner
- This method is used to decide if this scanner can handle this tag type.
If the evaluation returns true, the calling side makes a call to scan().
This method has to be implemented meaningfully only if a
first-word match with the scanner id does not imply a match (or extra
processing needs to be done). Default returns true
- Overrides:
evaluate in class TagScanner
createTag
public org.htmlparser.tags.Tag createTag(org.htmlparser.tags.data.TagData tagData,
org.htmlparser.tags.data.CompositeTagData compositeTagData)
- Description copied from class:
CompositeTagScanner
- You must override this method to create the tag of your choice upon
successful parsing. Data required for construction of your tag can be
found within tagData and compositeTagData
- Specified by:
createTag in class CompositeTagScanner