org.ccil.cowan.tagsoup

Interface ScanHandler

public interface ScanHandler

An interface that Scanners use to report events in the input stream.
Method Summary
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.
voidcmnt(char[] buff, int offset, int length)
Reports a comment.
voiddecl(char[] buff, int offset, int length)
Reports a
voidentity(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.
chargetEntity()
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

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

aname

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

aval

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

cmnt

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

decl

public void decl(char[] buff, int offset, int length)
Reports a declaration - typically a DOCTYPE

entity

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

eof

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

etag

public void etag(char[] buff, int offset, int length)
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)
Reports the general identifier (element type name) of a start-tag.

pcdata

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

pi

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

pitarget

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

stagc

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

stage

public void stage(char[] buff, int offset, int length)
Reports the close of an empty-tag.
Licence: Academic Free License 3.0 and/or GPL 2.0