|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
java.util.logging.XMLFormatter
public class XMLFormatter
Format a given LogRecord into string represents XML. The DTD specified in
Appendix A to Java Logging APIs specification is used.
XMLFormatter uses given Handler's encoding if has, otherwise
uses default platform encoding instead. However, the UTF-8 is recommended encoding.
| Constructor Summary | |
|---|---|
XMLFormatter()
Default constructor |
|
| Method Summary | |
|---|---|
String |
format(LogRecord r)
Format a LogRecord into string which represents XML |
String |
getHead(Handler h)
Return the header string for XML, use given handler's encoding if has, other wise use default platform encoding |
String |
getTail(Handler h)
Return the tail string for XML |
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLFormatter()
| Method Detail |
|---|
public String format(LogRecord r)
LogRecord into string which represents XML
format in class Formatterr - the given LogRecord instance to be formatted
public String getHead(Handler h)
getHead in class Formatterh - the given handler
public String getTail(Handler h)
getTail in class Formatterh - the given handler
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||