ca.umontreal.iro.rali
Class ExploreSAX

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

public class ExploreSAX
extends java.lang.Object

Show the XPath expressions corresponding to paths going from the root to leaves in an XML documents using a SAX parser

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

Constructor Summary
ExploreSAX()
           
 
Method Summary
protected static long execute()
          Explore an XML file by generating a series of Path expression describing leafs of the skeleton document; called when no -xp argument is given
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

ExploreSAX

public ExploreSAX()
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()
Explore an XML file by generating a series of Path expression describing leafs of the skeleton document; called when no -xp argument is given

Throws:
org.w3c.dom.DOMException
javax.xml.stream.XMLStreamException
javax.xml.parsers.ParserConfigurationException