uk.org.iscream.cms.util
Class XMLPacketMaker

java.lang.Object
  extended byuk.org.iscream.cms.util.XMLPacketMaker

public class XMLPacketMaker
extends Object

XMLPacketMaker - Creates an XMLPacket object.

Version:
$Id: XMLPacketMaker.java,v 1.19 2003/02/05 14:27:59 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  SAXParserFactory _factory
          A reference to the system saxParser factory
private  String _name
          This is the friendly identifier of the component this class is running in.
 String REVISION
          The current CVS revision of this class
 
Constructor Summary
XMLPacketMaker()
           
 
Method Summary
 XMLPacket createXMLPacket(String xml)
          Method to create an XML packet from the data this class was constructed with.
 String toString()
          Overrides the Object.toString() method to provide clean logging (every class should have this).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_factory

private final SAXParserFactory _factory
A reference to the system saxParser factory


_name

private String _name
This is the friendly identifier of the component this class is running in. eg, a Filter may be called "filter1", If this class does not have an owning component, a name from the configuration can be placed here. This name could also be changed to null for utility classes.

Constructor Detail

XMLPacketMaker

public XMLPacketMaker()
Method Detail

createXMLPacket

public XMLPacket createXMLPacket(String xml)
                          throws InvalidXMLException
Method to create an XML packet from the data this class was constructed with.

Parameters:
xml - the XML String to parse
Returns:
an XMLPacket representing the XML String given
Throws:
InvalidXMLException - if the XML cannot be parsed

toString

public String toString()
Overrides the Object.toString() method to provide clean logging (every class should have this). This uses the uk.org.iscream.cms.server.util.NameFormat class to format the toString()

Returns:
the name of this class and its CVS revision


Copyright © 2000-2003 i-scream. All Rights Reserved.