public class HTMLScanner.ContentScanner extends Object implements HTMLScanner.Scanner
| Constructor and Description |
|---|
ContentScanner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLocationItem(XMLAttributes attributes,
int index) |
protected 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(XMLAttributesImpl attributes,
boolean[] empty)
Scans a real attribute.
|
protected boolean |
scanAttribute(XMLAttributesImpl attributes,
boolean[] empty,
char endc)
Scans an attribute, pseudo or real.
|
protected void |
scanCDATA() |
protected void |
scanCharacters() |
protected void |
scanComment() |
protected void |
scanEndElement() |
protected boolean |
scanMarkupContent(XMLStringBuffer buffer,
char cend) |
protected void |
scanPI() |
protected boolean |
scanPseudoAttribute(XMLAttributesImpl attributes)
Scans a pseudo attribute.
|
protected String |
scanStartElement(boolean[] empty)
Scans a start element.
|
public boolean scan(boolean complete)
throws IOException
scan in interface HTMLScanner.Scannercomplete - True if the scanner should not return until
scanning is complete.IOException - Thrown if I/O error occurs.protected String nextContent(int len) throws IOException
len - the number of characters to readIOException - in case of io problemsprotected void scanCharacters()
throws IOException
IOExceptionprotected void scanCDATA()
throws IOException
IOExceptionprotected void scanComment()
throws IOException
IOExceptionprotected boolean scanMarkupContent(XMLStringBuffer buffer, char cend) throws IOException
IOExceptionprotected void scanPI()
throws IOException
IOExceptionprotected String scanStartElement(boolean[] empty) throws IOException
empty - Is used for a second return value to indicate whether
the start element tag is empty (e.g. "/>").IOException - in case of io problemsprotected boolean scanAttribute(XMLAttributesImpl attributes, boolean[] empty) throws 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. "/>").IOException - in case of io problemsprotected boolean scanPseudoAttribute(XMLAttributesImpl attributes) throws IOException
attributes - The list of attributes.IOException - in case of io problemsprotected boolean scanAttribute(XMLAttributesImpl attributes, boolean[] empty, char endc) throws 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 ('>').IOException - in case of io problemsprotected void addLocationItem(XMLAttributes attributes, int index)
protected void scanEndElement()
throws IOException
IOExceptionCopyright © 2023 Gargoyle Software Inc.. All rights reserved.