org.ccil.cowan.tagsoup

Interface ScanHandler

Known Implementing Classes:
Parser, PYXWriter

public interface ScanHandler

An interface that Scanners use to report events in the input stream.

Method Summary

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 DOCTYPE
void
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.
char
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 Details

adup

public void adup(char[] buff,
                 int offset,
                 int length)
            throws SAXException
Reports an attribute name without a value.

aname

public void aname(char[] buff,
                  int offset,
                  int length)
            throws SAXException
Reports an attribute name; a value will follow.

aval

public void aval(char[] buff,
                 int offset,
                 int length)
            throws SAXException
Reports an attribute value.

cdsect

public void cdsect(char[] buff,
                   int offset,
                   int length)
            throws SAXException
Reports the content of a CDATA section (not a CDATA element)

cmnt

public void cmnt(char[] buff,
                 int offset,
                 int length)
            throws SAXException
Reports a comment.

decl

public void decl(char[] buff,
                 int offset,
                 int length)
            throws SAXException
Reports a <!....> declaration - typically a DOCTYPE

entity

public void entity(char[] buff,
                   int offset,
                   int length)
            throws SAXException
Reports an entity reference or character reference.

eof

public void eof(char[] buff,
                int offset,
                int length)
            throws SAXException
Reports EOF.

etag

public void etag(char[] buff,
                 int offset,
                 int length)
            throws SAXException
Reports an end-tag.

getEntity

public char getEntity()
Returns the value of the last entity or character reference reported.

gi

public void gi(char[] buff,
               int offset,
               int length)
            throws SAXException
Reports the general identifier (element type name) of a start-tag.

pcdata

public void pcdata(char[] buff,
                   int offset,
                   int length)
            throws SAXException
Reports character content.

pi

public void pi(char[] buff,
               int offset,
               int length)
            throws SAXException
Reports the data part of a processing instruction.

pitarget

public void pitarget(char[] buff,
                     int offset,
                     int length)
            throws SAXException
Reports the target part of a processing instruction.

stagc

public void stagc(char[] buff,
                  int offset,
                  int length)
            throws SAXException
Reports the close of a start-tag.

stage

public void stage(char[] buff,
                  int offset,
                  int length)
            throws SAXException
Reports the close of an empty-tag.

Licence: Academic Free License 3.0 and/or GPL 2.0