org.cyberneko.html
Class HTMLScanner.ContentScanner

java.lang.Object
  extended byorg.cyberneko.html.HTMLScanner.ContentScanner
All Implemented Interfaces:
HTMLScanner.Scanner
Enclosing class:
HTMLScanner

public class HTMLScanner.ContentScanner
extends Object
implements HTMLScanner.Scanner

The primary HTML document scanner.

Author:
Andy Clark

Constructor Summary
HTMLScanner.ContentScanner()
           
 
Method Summary
protected  void addLocationItem(XMLAttributes attributes, int index)
          Adds location augmentations to the specified attribute.
 boolean scan(boolean complete)
          Scan.
protected  boolean scanAttribute(XMLAttributesImpl attributes, boolean[] empty)
          Scans an attribute.
protected  void scanCharacters()
          Scans characters.
protected  void scanComment()
          Scans a comment.
protected  void scanEndElement()
          Scans an end element.
protected  void scanPI()
          Scans a processing instruction.
protected  String scanStartElement(boolean[] empty)
          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 IOException
Scan.

Specified by:
scan in interface HTMLScanner.Scanner
Parameters:
complete - True if the scanner should not return until scanning is complete.
Throws:
IOException - Thrown if I/O error occurs.

scanCharacters

protected void scanCharacters()
                       throws IOException
Scans characters.

Throws:
IOException

scanComment

protected void scanComment()
                    throws IOException
Scans a comment.

Throws:
IOException

scanPI

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

Throws:
IOException

scanStartElement

protected String scanStartElement(boolean[] empty)
                           throws IOException
Scans a start element.

Parameters:
empty - Is used for a second return value to indicate whether the start element tag is empty (e.g. "/>").
Throws:
IOException

scanAttribute

protected boolean scanAttribute(XMLAttributesImpl attributes,
                                boolean[] empty)
                         throws IOException
Scans an attribute.

Parameters:
attributes - The list of attributes.
empty - Is used for a second return value to indicate whether the start element tag is empty (e.g. "/>").
Throws:
IOException

addLocationItem

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


scanEndElement

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

Throws:
IOException


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