32 |
|
* an example for rootInfo would be "Host" |
33 |
|
*/ |
34 |
|
public XMLFormatter(String rootInfo){ |
35 |
– |
|
35 |
|
myStack = new Stack(); |
36 |
|
xmlData = new String(); |
37 |
|
xmlData = "<"+rootInfo+">"; |
48 |
|
hostInfo = null; |
49 |
|
} |
50 |
|
|
51 |
+ |
/** |
52 |
+ |
* Public Constructor for the class |
53 |
+ |
* Takes a second parameter containing the root attributes. |
54 |
+ |
*/ |
55 |
+ |
public XMLFormatter(String rootInfo, String rootAttributes){ |
56 |
+ |
myStack = new Stack(); |
57 |
+ |
xmlData = new String(); |
58 |
+ |
xmlData = "<"+rootInfo+" "+rootAttributes+">"; |
59 |
+ |
hostInfo = rootInfo; |
60 |
+ |
} |
61 |
|
|
62 |
|
//---PUBLIC METHODS--- |
63 |
|
|