Package org.ccil.cowan.tagsoup
Interface ScanHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadup(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 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.intgetEntity()Returns 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 Detail
-
adup
void adup(char[] buff, int offset, int length) throws SAXExceptionReports an attribute name without a value.- Throws:
SAXException
-
aname
void aname(char[] buff, int offset, int length) throws SAXExceptionReports an attribute name; a value will follow.- Throws:
SAXException
-
aval
void aval(char[] buff, int offset, int length) throws SAXExceptionReports an attribute value.- Throws:
SAXException
-
cdsect
void cdsect(char[] buff, int offset, int length) throws SAXExceptionReports the content of a CDATA section (not a CDATA element)- Throws:
SAXException
-
decl
void decl(char[] buff, int offset, int length) throws SAXExceptionReports a declaration - typically a DOCTYPE- Throws:
SAXException
-
entity
void entity(char[] buff, int offset, int length) throws SAXExceptionReports an entity reference or character reference.- Throws:
SAXException
-
eof
void eof(char[] buff, int offset, int length) throws SAXExceptionReports EOF.- Throws:
SAXException
-
etag
void etag(char[] buff, int offset, int length) throws SAXExceptionReports an end-tag.- Throws:
SAXException
-
gi
void gi(char[] buff, int offset, int length) throws SAXExceptionReports the general identifier (element type name) of a start-tag.- Throws:
SAXException
-
pcdata
void pcdata(char[] buff, int offset, int length) throws SAXExceptionReports character content.- Throws:
SAXException
-
pi
void pi(char[] buff, int offset, int length) throws SAXExceptionReports the data part of a processing instruction.- Throws:
SAXException
-
pitarget
void pitarget(char[] buff, int offset, int length) throws SAXExceptionReports the target part of a processing instruction.- Throws:
SAXException
-
stagc
void stagc(char[] buff, int offset, int length) throws SAXExceptionReports the close of a start-tag.- Throws:
SAXException
-
stage
void stage(char[] buff, int offset, int length) throws SAXExceptionReports the close of an empty-tag.- Throws:
SAXException
-
cmnt
void cmnt(char[] buff, int offset, int length) throws SAXExceptionReports a comment.- Throws:
SAXException
-
getEntity
int getEntity()
Returns the value of the last entity or character reference reported.
-
-