public class HTMLScanner.ContentScanner extends java.lang.Object implements HTMLScanner.Scanner
| Constructor and Description |
|---|
HTMLScanner.ContentScanner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLocationItem(org.apache.xerces.xni.XMLAttributes attributes,
int index)
Adds location augmentations to the specified attribute.
|
protected java.lang.String |
nextContent(int len)
Reads the next characters WITHOUT impacting the buffer content
up to current offset.
|
boolean |
scan(boolean complete)
Scan.
|
protected boolean |
scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes,
boolean[] empty)
Scans a real attribute.
|
protected boolean |
scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes,
boolean[] empty,
char endc)
Scans an attribute, pseudo or real.
|
protected void |
scanCDATA()
Scans a CDATA section.
|
protected void |
scanCharacters()
Scans characters.
|
protected void |
scanComment()
Scans a comment.
|
protected void |
scanEndElement()
Scans an end element.
|
protected boolean |
scanMarkupContent(org.apache.xerces.util.XMLStringBuffer buffer,
char cend)
Scans markup content.
|
protected void |
scanPI()
Scans a processing instruction.
|
protected boolean |
scanPseudoAttribute(org.apache.xerces.util.XMLAttributesImpl attributes)
Scans a pseudo attribute.
|
protected java.lang.String |
scanStartElement(boolean[] empty)
Scans a start element.
|
public boolean scan(boolean complete)
throws java.io.IOException
scan in interface HTMLScanner.Scannercomplete - True if the scanner should not return until
scanning is complete.java.io.IOException - Thrown if I/O error occurs.protected java.lang.String nextContent(int len)
throws java.io.IOException
len - the number of characters to readjava.io.IOExceptionprotected void scanCharacters()
throws java.io.IOException
java.io.IOExceptionprotected void scanCDATA()
throws java.io.IOException
java.io.IOExceptionprotected void scanComment()
throws java.io.IOException
java.io.IOExceptionprotected boolean scanMarkupContent(org.apache.xerces.util.XMLStringBuffer buffer,
char cend)
throws java.io.IOException
java.io.IOExceptionprotected void scanPI()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String scanStartElement(boolean[] empty)
throws java.io.IOException
empty - Is used for a second return value to indicate whether
the start element tag is empty (e.g. "/>").java.io.IOExceptionprotected boolean scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes,
boolean[] empty)
throws java.io.IOException
attributes - The list of attributes.empty - Is used for a second return value to indicate
whether the start element tag is empty
(e.g. "/>").java.io.IOExceptionprotected boolean scanPseudoAttribute(org.apache.xerces.util.XMLAttributesImpl attributes)
throws java.io.IOException
attributes - The list of attributes.java.io.IOExceptionprotected boolean scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes,
boolean[] empty,
char endc)
throws java.io.IOException
attributes - The list of attributes.empty - Is used for a second return value to indicate
whether the start element tag is empty
(e.g. "/>").endc - The end character that appears before the
closing angle bracket ('>').java.io.IOExceptionprotected void addLocationItem(org.apache.xerces.xni.XMLAttributes attributes,
int index)
protected void scanEndElement()
throws java.io.IOException
java.io.IOException(C) Copyright 2002-2008, Andy Clark, Marc Guillemot. All rights reserved.