Package org.ccil.cowan.tagsoup
Interface ScanHandler
public interface ScanHandler
An interface that Scanners use to report events in the input stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadup(char[] buff, int offset, int length) Reports an attribute name without a value.voidaname(char[] buff, int offset, int length) Reports an attribute name; a value will follow.voidaval(char[] buff, int offset, int length) Reports an attribute value.voidcdsect(char[] buff, int offset, int length) Reports the content of a CDATA section (not a CDATA element)voidcmnt(char[] buff, int offset, int length) Reports a comment.voiddecl(char[] buff, int offset, int length) Reports a invalid input: '<!'....> declaration - typically a DOCTYPEvoidentity(char[] buff, int offset, int length) Reports an entity reference or character reference.voideof(char[] buff, int offset, int length) Reports EOF.voidetag(char[] buff, int offset, int length) Reports an end-tag.intReturns the value of the last entity or character reference reported.voidgi(char[] buff, int offset, int length) Reports the general identifier (element type name) of a start-tag.voidpcdata(char[] buff, int offset, int length) Reports character content.voidpi(char[] buff, int offset, int length) Reports the data part of a processing instruction.voidpitarget(char[] buff, int offset, int length) Reports the target part of a processing instruction.voidstagc(char[] buff, int offset, int length) Reports the close of a start-tag.voidstage(char[] buff, int offset, int length) Reports the close of an empty-tag.
-
Method Details
-
adup
Reports an attribute name without a value.- Throws:
SAXException
-
aname
Reports an attribute name; a value will follow.- Throws:
SAXException
-
aval
Reports an attribute value.- Throws:
SAXException
-
cdsect
Reports the content of a CDATA section (not a CDATA element)- Throws:
SAXException
-
decl
Reports a invalid input: '<!'....> declaration - typically a DOCTYPE- Throws:
SAXException
-
entity
Reports an entity reference or character reference.- Throws:
SAXException
-
eof
Reports EOF.- Throws:
SAXException
-
etag
Reports an end-tag.- Throws:
SAXException
-
gi
Reports the general identifier (element type name) of a start-tag.- Throws:
SAXException
-
pcdata
Reports character content.- Throws:
SAXException
-
pi
Reports the data part of a processing instruction.- Throws:
SAXException
-
pitarget
Reports the target part of a processing instruction.- Throws:
SAXException
-
stagc
Reports the close of a start-tag.- Throws:
SAXException
-
stage
Reports the close of an empty-tag.- Throws:
SAXException
-
cmnt
Reports a comment.- Throws:
SAXException
-
getEntity
int getEntity()Returns the value of the last entity or character reference reported.
-