org.apache.manifoldcf.crawler.connectors.webcrawler
Class ScriptParseState

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.webcrawler.BasicParseState
      extended by org.apache.manifoldcf.crawler.connectors.webcrawler.ScriptParseState
Direct Known Subclasses:
MetaParseState

public class ScriptParseState
extends BasicParseState

This class interprets the tag stream generated by the BasicParseState class, and causes script sections to be skipped


Field Summary
protected  int scriptParseState
           
protected static int SCRIPTPARSESTATE_INSCRIPT
           
protected static int SCRIPTPARSESTATE_NORMAL
           
 
Fields inherited from class org.apache.manifoldcf.crawler.connectors.webcrawler.BasicParseState
BASICPARSESTATE_IN_ATTR_LOOKING_FOR_VALUE, BASICPARSESTATE_IN_ATTR_NAME, BASICPARSESTATE_IN_ATTR_VALUE, BASICPARSESTATE_IN_COMMENT, BASICPARSESTATE_IN_DOUBLE_QUOTES_ATTR_VALUE, BASICPARSESTATE_IN_END_TAG_NAME, BASICPARSESTATE_IN_SINGLE_QUOTES_ATTR_VALUE, BASICPARSESTATE_IN_TAG_NAME, BASICPARSESTATE_IN_TAG_SAW_SLASH, BASICPARSESTATE_IN_UNQUOTED_ATTR_VALUE, BASICPARSESTATE_NORMAL, BASICPARSESTATE_SAWCOMMENTDASH, BASICPARSESTATE_SAWDASH, BASICPARSESTATE_SAWEXCLAMATION, BASICPARSESTATE_SAWLEFTBRACKET, BASICPARSESTATE_SAWSECONDCOMMENTDASH, currentAttrMap, currentAttrName, currentAttrNameBuffer, currentState, currentTagName, currentTagNameBuffer, currentValueBuffer, mapLookup
 
Constructor Summary
ScriptParseState()
           
 
Method Summary
protected  void noteEndTag(java.lang.String tagName)
           
protected  void noteNonscriptEndTag(java.lang.String tagName)
           
protected  void noteNonscriptTag(java.lang.String tagName, java.util.Map attributes)
           
protected  void noteTag(java.lang.String tagName, java.util.Map attributes)
           
 
Methods inherited from class org.apache.manifoldcf.crawler.connectors.webcrawler.BasicParseState
dealWithCharacter, finishUp, htmlAttributeDecode, isHTMLWhitespace, mapChunk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPTPARSESTATE_NORMAL

protected static final int SCRIPTPARSESTATE_NORMAL
See Also:
Constant Field Values

SCRIPTPARSESTATE_INSCRIPT

protected static final int SCRIPTPARSESTATE_INSCRIPT
See Also:
Constant Field Values

scriptParseState

protected int scriptParseState
Constructor Detail

ScriptParseState

public ScriptParseState()
Method Detail

noteTag

protected void noteTag(java.lang.String tagName,
                       java.util.Map attributes)
                throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Overrides:
noteTag in class BasicParseState
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException

noteEndTag

protected void noteEndTag(java.lang.String tagName)
                   throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Overrides:
noteEndTag in class BasicParseState
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException

noteNonscriptTag

protected void noteNonscriptTag(java.lang.String tagName,
                                java.util.Map attributes)
                         throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException

noteNonscriptEndTag

protected void noteNonscriptEndTag(java.lang.String tagName)
                            throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException