org.ipdr.xml
Class XMLUnMarshaller

java.lang.Object
  extended by org.ipdr.xml.XMLUnMarshaller

public class XMLUnMarshaller
extends java.lang.Object

XMLUnMarshaller will take an XML file and parse it using SAX, displaying the callbacks in the parsing lifecycle.


Field Summary
protected  IPDRXMLContentHandler contentHandler_
          This parses the file, using registered SAX handlers, and output the events in the parsing process cycle.
protected  java.lang.String ipdrVersion_
          String containing IPDR Version.
 
Constructor Summary
XMLUnMarshaller(java.io.InputStream i)
          Constructor.
 
Method Summary
 IPDRXMLContentHandler getContentHandler()
          Method to get the object of XML Content Handler class.
 java.lang.String getVersion()
          Method to get the IPDR Version.
static void main(java.lang.String[] args)
          Simple demonstration entry point.
 void setVersion(java.lang.String ver)
          Method to set the IPDR Version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentHandler_

protected IPDRXMLContentHandler contentHandler_
This parses the file, using registered SAX handlers, and output the events in the parsing process cycle.


ipdrVersion_

protected java.lang.String ipdrVersion_
String containing IPDR Version.

Constructor Detail

XMLUnMarshaller

public XMLUnMarshaller(java.io.InputStream i)
                throws java.io.IOException,
                       IPDRException
Constructor. Parses the Input stream and populates the Content Handler.

Parameters:
i - Input Stream to read from
Throws:
java.io.IOException - when an exception occurs while reading
IPDRException - when a IPDR functionality related exception occurs
Method Detail

getContentHandler

public IPDRXMLContentHandler getContentHandler()
Method to get the object of XML Content Handler class.

Returns:
The Content Handler

setVersion

public void setVersion(java.lang.String ver)
Method to set the IPDR Version.

Parameters:
ver - IPDR Version.

getVersion

public java.lang.String getVersion()
Method to get the IPDR Version.

Returns:
IPDR Version

main

public static void main(java.lang.String[] args)
Simple demonstration entry point.