Forward Consumer events to a SAX2 ContentHandler.
beginAttribute
public void beginAttribute(String attrName,
Object attrType)
Write a attribute for the current group.
This is only allowed immediately after a beginGroup.
- beginAttribute in interface Consumer
beginGroup
public void beginGroup(String typeName,
Object type)
- beginGroup in interface Consumer
error
public void error(String method,
SAXException ex)
finalize
public void finalize()
getContentHandler
public ContentHandler getContentHandler()
getIndex
public int getIndex(String qName)
getIndex
public int getIndex(String uri,
String localPart)
getLength
public int getLength()
getLocalName
public String getLocalName(int i)
getQName
public String getQName(int i)
getType
public String getType(String qName)
getType
public String getType(String uri,
String localPart)
getType
public String getType(int i)
getURI
public String getURI(int i)
getValue
public String getValue(String qName)
getValue
public String getValue(String uri,
String localPart)
getValue
public String getValue(int i)
ignoring
public boolean ignoring()
True if consumer is ignoring rest of group.
The producer can use this information to skip ahead.
- ignoring in interface Consumer
setContentHandler
public void setContentHandler(ContentHandler handler)
write
public void write(char[] buf,
int off,
int len)
- write in interface Consumer