--- projects/cms/source/host/java/XMLFormatter.java 2000/12/08 12:21:11 1.4 +++ projects/cms/source/host/java/XMLFormatter.java 2002/05/18 18:15:57 1.7 @@ -1,3 +1,22 @@ +/* + * i-scream central monitoring system + * 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--- //---IMPORTS--- @@ -5,13 +24,14 @@ import java.util.*; /** * Formats data into valid XML - * By calling either addElement() or addNest() you can use this - * class to create valid xml. When all elements have been added - * calling returnXML() will return a string containing the xml. + * By calling either addElement() or addNest() you can use + * this class to create valid xml. When all elements have + * been added calling returnXML() will return a string + * containing the xml. * * - * @author $Author: ab11 $ - * @version $Id: XMLFormatter.java,v 1.4 2000/12/08 12:21:11 ab11 Exp $ + * @author $Author: tdb $ + * @version $Id: XMLFormatter.java,v 1.7 2002/05/18 18:15:57 tdb Exp $ */ class XMLFormatter { @@ -20,7 +40,7 @@ class XMLFormatter { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.4 $"; + public final String REVISION = "$Revision: 1.7 $"; //---STATIC METHODS--- @@ -60,17 +80,6 @@ class XMLFormatter { xmlData = new String(); hostInfo = null; } - - /** - * Public Constructor for the class - * Takes a second parameter containing the root attributes. - */ - public XMLFormatter(String rootInfo, String rootAttributes){ - myStack = new Stack(); - xmlData = new String(); - xmlData = "<"+rootInfo+" "+rootAttributes+">"; - hostInfo = rootInfo; - } //---PUBLIC METHODS---