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