|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.esri.gpt.framework.xml.BaseSaxHandler
public class BaseSaxHandler
Handles core SAX events during the parsing of an XML document.
| Constructor Summary | |
|---|---|
BaseSaxHandler()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Sets text node characters for a SAX element. |
void |
endDocument()
Ends the SAX document. |
void |
endElement(String uri,
String localName,
String qName)
Ends a SAX element. |
protected void |
onEndSaxElement(String uri,
String localName,
String qName,
String localPath,
String textNodeValue)
Triggered when an element is ended during the parsing of an XML document. |
protected void |
onStartSaxElement(String uri,
String localName,
String qName,
String localPath,
Attributes attributes)
Triggered when an element is started during the parsing of an XML document. |
void |
parse(String xml,
boolean namespaceAware)
Starts a SAX parser on an XML string. |
void |
startDocument()
Starts the SAX document. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Starts a SAX element. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseSaxHandler()
| Method Detail |
|---|
public final void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - the array of charactersstart - the starting position within the arraylength - the number of characters to read from the array
SAXException - if the exception occurs
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - if a SAXException occurs
public final void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandleruri - the uri namespace for the elementlocalName - the local name for the elementqName - the qualified name for the element
SAXException - if a SAXException occurs
protected void onEndSaxElement(String uri,
String localName,
String qName,
String localPath,
String textNodeValue)
throws SAXException
uri - the uri namespace for the elementlocalName - the local name for the elementqName - the qualified name for the elementlocalPath - the local path for the elementtextNodeValue - the text node value for the element
SAXException - if a SAXException occurs
protected void onStartSaxElement(String uri,
String localName,
String qName,
String localPath,
Attributes attributes)
throws SAXException
uri - the uri namespace for the elementlocalName - the local name for the elementqName - the qualified name for the elementlocalPath - the local path for the elementattributes - the attributes for the element
SAXException - if a SAXException occurs
public void parse(String xml,
boolean namespaceAware)
throws ParserConfigurationException,
SAXException,
IOException
xml - the XML string to parsenamespaceAware - flag indication if the parser should be namespace aware
ParserConfigurationException - if the exception occurs
SAXException - if the exception occurs
IOException - if the exception occurs
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - if a SAXException occurs
public final void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - the uri namespace for the elementlocalName - the local name for the elementqName - the qualified name for the elementattributes - the attributes for the element
SAXException - if a SAXException occurs
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||