1 |
/* XMLFormatter.java |
/* XMLFormatter.java -- |
2 |
-- a class for formatting log messages into a standard XML format |
A class for formatting log messages into a standard XML format |
3 |
|
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
|
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
|
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
34 |
or based on this library. If you modify this library, you may extend |
or based on this library. If you modify this library, you may extend |
35 |
this exception to your version of the library, but you are not |
this exception to your version of the library, but you are not |
36 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
37 |
exception statement from your version. |
exception statement from your version. */ |
|
|
|
|
*/ |
|
38 |
|
|
39 |
|
|
40 |
package java.util.logging; |
package java.util.logging; |
98 |
* @param content the element content, or <code>null</code> to |
* @param content the element content, or <code>null</code> to |
99 |
* have no output whatsoever appended to <code>buf</code>. |
* have no output whatsoever appended to <code>buf</code>. |
100 |
*/ |
*/ |
101 |
private static final void appendTag(StringBuffer buf, |
private static void appendTag(StringBuffer buf, int indent, |
102 |
int indent, |
String tag, String content) |
|
String tag, |
|
|
String content) |
|
103 |
{ |
{ |
104 |
int i; |
int i; |
105 |
|
|
173 |
* |
* |
174 |
* @param content the element content. |
* @param content the element content. |
175 |
*/ |
*/ |
176 |
private static final void appendTag(StringBuffer buf, |
private static void appendTag(StringBuffer buf, int indent, |
177 |
int indent, |
String tag, long content) |
|
String tag, |
|
|
long content) |
|
178 |
{ |
{ |
179 |
appendTag(buf, indent, tag, Long.toString(content)); |
appendTag(buf, indent, tag, Long.toString(content)); |
180 |
} |
} |