--- projects/cms/source/util/uk/org/iscream/cms/util/XMLPacketMaker.java 2001/03/14 23:25:30 1.14 +++ projects/cms/source/util/uk/org/iscream/cms/util/XMLPacketMaker.java 2002/05/21 16:47:20 1.18 @@ -1,5 +1,25 @@ +/* + * i-scream central monitoring system + * http://www.i-scream.org.uk + * Copyright (C) 2000-2002 i-scream + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + //---PACKAGE DECLARATION--- -package uk.org.iscream.util; +package uk.org.iscream.cms.server.util; //---IMPORTS--- import java.io.*; @@ -10,7 +30,7 @@ import javax.xml.parsers.*; * XMLPacketMaker - Creates an XMLPacket object. * * @author $Author: tdb $ - * @version $Id: XMLPacketMaker.java,v 1.14 2001/03/14 23:25:30 tdb Exp $ + * @version $Id: XMLPacketMaker.java,v 1.18 2002/05/21 16:47:20 tdb Exp $ */ public class XMLPacketMaker { @@ -19,7 +39,12 @@ public class XMLPacketMaker { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.14 $"; + public final String REVISION = "$Revision: 1.18 $"; + + /** + * A reference to the system saxParser factory + */ + private final SAXParserFactory _factory = SAXParserFactory.newInstance(); //---STATIC METHODS--- @@ -58,7 +83,7 @@ public class XMLPacketMaker { * Overrides the {@link java.lang.Object#toString() Object.toString()} * method to provide clean logging (every class should have this). * - * This uses the uk.org.iscream.util.NameFormat class + * This uses the uk.org.iscream.cms.server.util.NameFormat class * to format the toString() * * @return the name of this class and its CVS revision @@ -88,10 +113,5 @@ public class XMLPacketMaker { private String _name = null; //---STATIC ATTRIBUTES--- - - /** - * A static reference to the system saxParser factory - */ - private static SAXParserFactory _factory = SAXParserFactory.newInstance(); }