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 TypeMethodDescriptionvoid
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 invalid input: '<!'....> 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
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 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.
-