|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.umontreal.iro.rali.Extract
public class Extract
Extract nodes from an XML document corresponding to an XPath expression using a Pull Parser
Constructor Summary | |
---|---|
Extract()
|
Method Summary | |
---|---|
protected static long |
execute()
Create a new XML document for each node matching the XPath expression given by the -xp parameter in order to save on memory each node is generated one by one as the input file is read |
protected static org.w3c.dom.Node |
readFullNode(javax.xml.stream.XMLStreamReader xmlsr,
org.w3c.dom.Document doc)
read a Node (created with the doc) from pull parser reader read a complete element (including embedded elements if necessary) |
protected static long |
setInputOutput()
Set up and initialize the pull parser and output stream writer |
protected static void |
skip(javax.xml.stream.XMLStreamReader xmlsr,
int level)
Skip the rest of an element, taking into account the possibility of embedded elements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Extract()
Method Detail |
---|
protected static long setInputOutput()
protected static long execute()
protected static org.w3c.dom.Node readFullNode(javax.xml.stream.XMLStreamReader xmlsr, org.w3c.dom.Document doc) throws javax.xml.stream.XMLStreamException
xmlsr
- the pull-parserdoc
- the document to create new nodes
javax.xml.stream.XMLStreamException
protected static void skip(javax.xml.stream.XMLStreamReader xmlsr, int level) throws javax.xml.stream.XMLStreamException
xmlsr
- pull-parserlevel
- indicates how many starting elements have been encountered without closing
javax.xml.stream.XMLStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |