ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/java/XMLFormatter.java
(Generate patch)

Comparing projects/cms/source/host/java/XMLFormatter.java (file contents):
Revision 1.4 by ab11, Fri Dec 8 12:21:11 2000 UTC vs.
Revision 1.7 by tdb, Sat May 18 18:15:57 2002 UTC

# Line 1 | Line 1
1 + /*
2 + * i-scream central monitoring system
3 + * Copyright (C) 2000-2002 i-scream
4 + *
5 + * This program is free software; you can redistribute it and/or
6 + * modify it under the terms of the GNU General Public License
7 + * as published by the Free Software Foundation; either version 2
8 + * of the License, or (at your option) any later version.
9 + *
10 + * This program is distributed in the hope that it will be useful,
11 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 + * GNU General Public License for more details.
14 + *
15 + * You should have received a copy of the GNU General Public License
16 + * along with this program; if not, write to the Free Software
17 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 + */
19 +
20   //---PACKAGE DECLARATION---
21  
22   //---IMPORTS---
# Line 5 | Line 24 | import java.util.*;
24  
25   /**
26   * Formats data into valid XML
27 < * By calling either addElement() or addNest() you can use this
28 < * class to create valid xml. When all elements have been added
29 < * calling returnXML() will return a string containing the xml.
27 > * By calling either addElement() or addNest() you can use
28 > * this class to create valid xml. When all elements have
29 > * been added calling returnXML() will return a string
30 > * containing the xml.
31   *
32   *
33   * @author  $Author$
# Line 60 | Line 80 | class XMLFormatter {
80          xmlData = new String();
81          hostInfo = null;
82      }        
63
64    /**
65    * Public Constructor for the class
66    * Takes a second parameter containing the root attributes.
67    */
68    public XMLFormatter(String rootInfo, String rootAttributes){
69        myStack = new Stack();
70        xmlData = new String();
71        xmlData = "<"+rootInfo+" "+rootAttributes+">";
72        hostInfo = rootInfo;
73    }
83  
84   //---PUBLIC METHODS---
85  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines