public class SimpleSAXAdapter extends Object implements SimpleSAXListener
| Constructor and Description |
|---|
SimpleSAXAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument()
Notifies the listener that the parser has finished parsing.
|
void |
endTag(String tagName)
Reports an end tag to the listener.
|
void |
startDocument()
Notifies the listener that the parser has started parsing.
|
void |
startTag(String tagName,
Map<String,String> atts,
String text)
Reports a start tag to the listener.
|
public void startDocument()
throws SAXException
SimpleSAXListenerstartDocument in interface SimpleSAXListenerSAXExceptionpublic void endDocument()
throws SAXException
SimpleSAXListenerendDocument in interface SimpleSAXListenerSAXExceptionpublic void startTag(String tagName, Map<String,String> atts, String text) throws SAXException
SimpleSAXListenerstartTag in interface SimpleSAXListenertagName - The tag name.atts - A map containing key-value-pairs representing the attributes that were found in the start tag.text - The text immediately following the start tag, or an empty string if the start tag was followed by
a nested start tag or if no text (other than whitespace) was found between start- and end tag.SAXExceptionpublic void endTag(String tagName) throws SAXException
SimpleSAXListenerendTag in interface SimpleSAXListenertagName - The tag name.SAXExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.