Forward Consumer events to a SAX2 ContentHandler.
endAttribute
public void endAttribute()
End of an attribute or end of an actual parameter.
The former use matches a startAttribute; the latter may not,
and can be used to separate parameters in a parameter list.
This double duty suggsts the method should at least be re-named.
- endAttribute in interface Consumer
endStartTag
public void endStartTag()
error
public void error(String method,
SAXException ex)
finalize
public void finalize()
getContentHandler
public ContentHandler getContentHandler()
ignoring
public boolean ignoring()
True if consumer is ignoring rest of element.
The producer can use this information to skip ahead.
- ignoring in interface Consumer
setContentHandler
public void setContentHandler(ContentHandler handler)
startAttribute
public void startAttribute(Object attrType)
Write a attribute for the current element.
This is only allowed immediately after a startElement.
- startAttribute in interface Consumer
write
public void write(CharSequence str,
int start,
int end)
- write in interface Consumer
write
public void write(char[] buf,
int off,
int len)
- write in interface Consumer