Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.htmlparser.scanners
Class BgSoundScanner  view BgSoundScanner download BgSoundScanner.java

java.lang.Object
  extended byorg.htmlparser.scanners.TagScanner
      extended byorg.htmlparser.scanners.BgSoundScanner
All Implemented Interfaces:
java.io.Serializable

public class BgSoundScanner
extends TagScanner

Scans for the bgsound 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 bgsound tag. Extraction is done by the scan method thereafter by the user of this class.


Field Summary
static java.lang.String BGSOUND_SCANNER_ID
           
private  org.htmlparser.util.LinkProcessor processor
           
private  java.util.Hashtable table
           
 
Fields inherited from class org.htmlparser.scanners.TagScanner
feedback, filter
 
Constructor Summary
BgSoundScanner()
          Overriding the default constructor
BgSoundScanner(java.lang.String filter, org.htmlparser.util.LinkProcessor processor)
          Overriding the constructor to accept the filter
 
Method Summary
protected  org.htmlparser.tags.Tag createTag(org.htmlparser.tags.data.TagData tagData, org.htmlparser.tags.Tag tag, java.lang.String url)
          Override this method to create your own tag type
 java.lang.String extractBgSoundLocn(org.htmlparser.tags.Tag tag, java.lang.String url)
          Extract the location of the bgsound, given the string to be parsed, and the url of the html page in which this tag exists.
 java.lang.String[] getID()
           
 
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
 

Field Detail

BGSOUND_SCANNER_ID

public static final java.lang.String BGSOUND_SCANNER_ID
See Also:
Constant Field Values

table

private java.util.Hashtable table

processor

private org.htmlparser.util.LinkProcessor processor
Constructor Detail

BgSoundScanner

public BgSoundScanner()
Overriding the default constructor


BgSoundScanner

public BgSoundScanner(java.lang.String filter,
                      org.htmlparser.util.LinkProcessor processor)
Overriding the constructor to accept the filter

Method Detail

extractBgSoundLocn

public java.lang.String extractBgSoundLocn(org.htmlparser.tags.Tag tag,
                                           java.lang.String url)
                                    throws org.htmlparser.util.ParserException
Extract the location of the bgsound, given the string to be parsed, and the url of the html page in which this tag exists.


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