public class PropertiesReadHandler extends AbstractXmlReadHandler
Constructor and Description |
---|
PropertiesReadHandler()
Creates a properties read-handler using "property" as child-tagname.
|
PropertiesReadHandler(String propertyTagName)
Creates a properties read-handler using the specified propertyTagName as child-tagname.
|
Modifier and Type | Method and Description |
---|---|
Object |
getObject()
Returns the resulting properties collection, never null.
|
Properties |
getResult()
Returns the resulting properties collection, never null.
|
characters, endElement, getLocator, getRootHandler, getTagName, getUri, init, startElement
public PropertiesReadHandler()
public PropertiesReadHandler(String propertyTagName)
propertyTagName
- the tag name for the child elements that define the properties.public Properties getResult()
public Object getObject() throws SAXException
SAXException
- if there is a parsing error.