|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.io.XMLReaderUtil
public class XMLReaderUtil
Use this class to simplify lookup and positioning of an XMLStreamReader
| Constructor Summary | |
|---|---|
XMLReaderUtil()
|
|
| Method Summary | |
|---|---|
boolean |
gotoTag(javax.xml.stream.XMLStreamReader parser,
String tagName)
Positions the parser to the tag named tagName. |
boolean |
gotoTag(javax.xml.stream.XMLStreamReader parser,
String tagName,
Integer attrIndex,
String attrValue)
If attrIndex and attrValue are both null only the tagName will be searched for |
boolean |
gotoTag(javax.xml.stream.XMLStreamReader parser,
String tagName,
String attrName,
String attrValue)
|
boolean |
gotoTag(javax.xml.stream.XMLStreamReader parser,
XMLTag template)
Positions the parser to start tag matching the given template. |
XMLTag |
parse(javax.xml.stream.XMLStreamReader parser,
TagFactory factory,
XMLTag template,
XMLTag parent)
Find the next element matching template tag and adds it as a child to the parent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLReaderUtil()
| Method Detail |
|---|
public XMLTag parse(javax.xml.stream.XMLStreamReader parser,
TagFactory factory,
XMLTag template,
XMLTag parent)
throws javax.xml.stream.XMLStreamException
parser - XMLStreamReaderfactory - used to create tagstemplate - XMLTag to matchparent - optional parent tag
javax.xml.stream.XMLStreamException
public boolean gotoTag(javax.xml.stream.XMLStreamReader parser,
XMLTag template)
parser - to positiontemplate - XMLTag to match
public boolean gotoTag(javax.xml.stream.XMLStreamReader parser,
String tagName)
parser - to positiontagName - in UPPERCASE
public boolean gotoTag(javax.xml.stream.XMLStreamReader parser,
String tagName,
Integer attrIndex,
String attrValue)
parser - xml reader to positiontagName - in UPPERCASEattrIndex - attribute index to matchattrValue - value of attribute to match
public boolean gotoTag(javax.xml.stream.XMLStreamReader parser,
String tagName,
String attrName,
String attrValue)
parser - tagName - in UPPERCASEattrName - attribute name to matchattrValue - value of attribute to match
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||