org.cyberneko.html
Class HTMLScanner.ContentScanner

java.lang.Object
  |
  +--org.cyberneko.html.HTMLScanner.ContentScanner
All Implemented Interfaces:
HTMLScanner.Scanner
Enclosing class:
HTMLScanner

public class HTMLScanner.ContentScanner
extends java.lang.Object
implements HTMLScanner.Scanner

The primary HTML document scanner.

Author:
Andy Clark

Constructor Summary
HTMLScanner.ContentScanner()
           
 
Method Summary
protected  void addLocationItem(org.apache.xerces.xni.XMLAttributes attributes, int index)
          Adds location augmentations to the specified attribute.
 boolean scan(boolean complete)
          Scan.
protected  boolean scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes)
          Scans an attribute.
protected  void scanCharacters()
          Scans characters.
protected  void scanComment()
          Scans a comment.
protected  void scanEndElement()
          Scans an end element.
protected  int scanEntityRef(org.apache.xerces.util.XMLStringBuffer str, boolean content)
          Scans an entity reference.
protected  void scanPI()
          Scans a processing instruction.
protected  java.lang.String scanStartElement()
          Scans a start element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLScanner.ContentScanner

public HTMLScanner.ContentScanner()
Method Detail

scan

public boolean scan(boolean complete)
             throws java.io.IOException
Scan.
Specified by:
scan in interface HTMLScanner.Scanner
Following copied from interface: org.cyberneko.html.HTMLScanner.Scanner
Parameters:
complete - True if the scanner should not return until scanning is complete.
Throws:
java.io.IOException - Thrown if I/O error occurs.

scanEntityRef

protected int scanEntityRef(org.apache.xerces.util.XMLStringBuffer str,
                            boolean content)
                     throws java.io.IOException
Scans an entity reference.

scanCharacters

protected void scanCharacters()
                       throws java.io.IOException
Scans characters.

scanComment

protected void scanComment()
                    throws java.io.IOException
Scans a comment.

scanPI

protected void scanPI()
               throws java.io.IOException
Scans a processing instruction.

scanStartElement

protected java.lang.String scanStartElement()
                                     throws java.io.IOException
Scans a start element.

scanAttribute

protected boolean scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes)
                         throws java.io.IOException
Scans an attribute.

addLocationItem

protected void addLocationItem(org.apache.xerces.xni.XMLAttributes attributes,
                               int index)
Adds location augmentations to the specified attribute.

scanEndElement

protected void scanEndElement()
                       throws java.io.IOException
Scans an end element.


(C) Copyright 2002, Andy Clark. All rights reserved.