FileDocCategorySizeDatePackage
ScanHandler.javaAPI DocAndroid 1.5 API2930Wed May 06 22:41:42 BST 2009org.ccil.cowan.tagsoup

ScanHandler

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

Fields Summary
Constructors Summary
Methods Summary
public voidadup(char[] buff, int offset, int length)
Reports an attribute name without a value.

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

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

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

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

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

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

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

public voidetag(char[] buff, int offset, int length)
Reports an end-tag.

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

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

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

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

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

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

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