net.ponder2.parser
Class XMLParser

java.lang.Object
  extended by net.ponder2.parser.XMLParser

public class XMLParser
extends java.lang.Object

TODO Description

Version:
$Id:$
Author:
Kevin Twidle

Field Summary
static boolean trace
           
 
Constructor Summary
XMLParser()
           
XMLParser(P2Hash variables)
           
 
Method Summary
 P2Object execute(P2Object source, java.io.Reader reader)
           
 P2Object execute(P2Object source, java.lang.String xmlString)
           
 P2Object execute(P2Object source, com.twicom.qdparser.TaggedElement xml)
           
static com.twicom.qdparser.TaggedElement readXML(java.io.Reader input)
          reads and parses XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trace

public static boolean trace
Constructor Detail

XMLParser

public XMLParser()

XMLParser

public XMLParser(P2Hash variables)
Parameters:
variables -
Method Detail

execute

public P2Object execute(P2Object source,
                        java.lang.String xmlString)
                 throws Ponder2Exception
Throws:
Ponder2Exception

execute

public P2Object execute(P2Object source,
                        java.io.Reader reader)
                 throws Ponder2Exception
Throws:
Ponder2Exception

execute

public P2Object execute(P2Object source,
                        com.twicom.qdparser.TaggedElement xml)
                 throws Ponder2Exception
Throws:
Ponder2Exception

readXML

public static com.twicom.qdparser.TaggedElement readXML(java.io.Reader input)
reads and parses XML

Parameters:
input - the input stream to read from
Returns:
the parsed XML structure or null if a failure occured


Copyright © 2008 Imperial College. All Rights Reserved.