--- projects/cms/source/util/uk/org/iscream/cms/util/XMLPacketMaker.java 2000/12/12 20:44:30 1.7 +++ projects/cms/source/util/uk/org/iscream/cms/util/XMLPacketMaker.java 2001/01/28 05:47:05 1.9 @@ -10,13 +10,11 @@ import javax.xml.parsers.SAXParserFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; -import uk.ac.ukc.iscream.core.*; - /** * XMLPacketMaker - Creates an XMLPacket object. * - * @author $Author: ajm $ - * @version $Id: XMLPacketMaker.java,v 1.7 2000/12/12 20:44:30 ajm Exp $ + * @author $Author: tdb $ + * @version $Id: XMLPacketMaker.java,v 1.9 2001/01/28 05:47:05 tdb Exp $ */ public class XMLPacketMaker extends HandlerBase { @@ -25,19 +23,29 @@ public class XMLPacketMaker extends HandlerBase { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.7 $"; + public final String REVISION = "$Revision: 1.9 $"; //---STATIC METHODS--- //---CONSTRUCTORS--- - // Constructor for accepting XML input. + /** + * Constructor for accepting XML input. + * + * @param xml A String of XML to process. + */ public XMLPacketMaker (String xml) { _xml = xml; } //---PUBLIC METHODS--- + /** + * Method to create an XML packet from the data this + * class was constructed with. + * + * @return an XMLPacket representing the XML String given + */ public XMLPacket createXMLPacket() { // Create the XMLPacket to store values in. @@ -54,8 +62,6 @@ public class XMLPacketMaker extends HandlerBase { } catch (Exception e) { - _logger.write(this.toString(), Logger.WARNING, e.toString()); - _logger.write(this.toString(), Logger.WARNING, "An invalid XML UDP packet has been detected: "+packet.printAll()); return null; } @@ -88,12 +94,6 @@ public class XMLPacketMaker extends HandlerBase { * Holds the xml */ String _xml; - - /** - * This holds a reference to the - * system logger that is being used. - */ - private Logger _logger = ReferenceManager.getInstance().getLogger(); /** * This is the friendly identifier of the