Class SaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.arjuna.common.util.propertyservice.SaxHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Author:
- Gytis Trikleris
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Handles text content of theentrytag.voidendElement(String uri, String localName, String qName) Handles close tag, if its name isentry.Returns copy of the properties read from the handled XML.voidstartElement(String uri, String localName, String qName, Attributes attributes) Handles open tag, if its name isentryand has attributekey.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SaxHandler
public SaxHandler()
-
-
Method Details
-
getProperties
Returns copy of the properties read from the handled XML.- Returns:
- Properties read from the handled XML.
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Handles open tag, if its name isentryand has attributekey.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
Handles close tag, if its name isentry.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
Handles text content of theentrytag.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-