ca.umontreal.iro.rali
Class ExtractSAX

java.lang.Object
  extended by ca.umontreal.iro.rali.ExtractSAX

public class ExtractSAX
extends java.lang.Object

Extract nodes from an XML document corresponding to an XPath expression using a SAX Parser

Author:
Guy Lapalme, Université de Montréal, 2009

Constructor Summary
ExtractSAX()
           
 
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 transformed one by one as the input file is read
protected static long setInputOutput()
          Set up and initialize the SAX parser and stream writer output file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractSAX

public ExtractSAX()
Method Detail

setInputOutput

protected static long setInputOutput()
Set up and initialize the SAX parser and stream writer output file

Returns:
the number of bytes in the input file

execute

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 transformed one by one as the input file is read