public class ResourcesReader extends TreeParser.NodeListener implements XMLReader
ResourcesReader.ResourceType
which specifies
path and name of attribute value of which will be the key
in returned map.
Modifier and Type | Class and Description |
---|---|
static class |
ResourcesReader.ResourceType
Paths and key names for various resource types.
|
Modifier and Type | Field and Description |
---|---|
private String |
keyName |
private String |
path |
private Map<String,String> |
properties |
private Map<String,Map<String,String>> |
resourceData |
Constructor and Description |
---|
ResourcesReader(ResourcesReader.ResourceType type) |
ResourcesReader(String path,
String keyName) |
Modifier and Type | Method and Description |
---|---|
void |
endNode(String qname) |
List<TreeParser.Path> |
getPathsToListen()
Every implementation needs to provide path objects.
|
Map<String,Map<String,String>> |
getResourceData() |
void |
readAttributes(String qname,
Attributes attributes) |
void |
readChildren(String qname,
Attributes attributes) |
readCData
public ResourcesReader(ResourcesReader.ResourceType type)
public void readAttributes(String qname, Attributes attributes) throws SAXException
readAttributes
in class TreeParser.NodeListener
SAXException
public void readChildren(String qname, Attributes attributes) throws SAXException
readChildren
in class TreeParser.NodeListener
SAXException
public void endNode(String qname) throws SAXException
endNode
in class TreeParser.NodeListener
SAXException
public List<TreeParser.Path> getPathsToListen()
XMLReader
getPathsToListen
in interface XMLReader
Copyright © 2013. All Rights Reserved.