Class XPNReader


  • public class XPNReader
    extends java.lang.Object
    A Utility class to read an XPathNode, using the org.exolab.adaptx.xslt.dom package as the implementation of XPathNode.
    Version:
    $Revision: 3926 $ $Date: 2003-10-01 10:51:09 +0200 (Wed, 01 Oct 2003) $
    Author:
    Keith Visco
    • Constructor Summary

      Constructors 
      Constructor Description
      XPNReader​(java.lang.String url)
      Creates a new XPNReader for the given URILocation.
      XPNReader​(URILocation location)
      Creates a new XPNReader for the given URILocation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XPathNode read()
      Reads an XML Document into an XPathNode from the given URILocation
      void setSaveLocation​(boolean saveLocation)
      Sets whether or not to save location information.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XPNReader

        public XPNReader​(URILocation location)
                  throws java.io.IOException
        Creates a new XPNReader for the given URILocation.
        Parameters:
        location - the URILocation to create this reader for.
        Throws:
        java.io.IOException
      • XPNReader

        public XPNReader​(java.lang.String url)
                  throws java.io.IOException
        Creates a new XPNReader for the given URILocation.
        Parameters:
        location - the URILocation to create this reader for.
        Throws:
        java.io.IOException
    • Method Detail

      • read

        public XPathNode read()
                       throws java.io.IOException
        Reads an XML Document into an XPathNode from the given URILocation
        Returns:
        the XPathNode
        Throws:
        java.io.IOException
      • setSaveLocation

        public void setSaveLocation​(boolean saveLocation)
        Sets whether or not to save location information. Location information can only be saved if the Locator has been set by the SAX Parser.
        Parameters:
        saveLocation - a boolean that when true, indicates that location information should be saved if possible.