|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.util.XMLWriter
public class XMLWriter
Provides a simplistic XML file writing facility.
The facility is simplistic because it does not use any XML libraries; instead, it just has a hard-coded root element for each document type, and each time it gets some text, it looks at the end of a file for the closing tag, deletes it, appends the text, and then re-adds the closing tag. Yuck! :-)
Constructor Summary | |
---|---|
XMLWriter()
|
Method Summary | |
---|---|
static void |
rollover(XMLResourceSpec spec)
Rolls over a spec (renames current file designated by a spec, and creates a new one with starttime and backlink set to the previous one). |
static void |
write(java.lang.String message,
XMLResourceSpec spec)
Writes a message to an XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLWriter()
Method Detail |
---|
public static void write(java.lang.String message, XMLResourceSpec spec)
message
- the text of the log eventspec
- provides information about the XML resource to which to writepublic static void rollover(XMLResourceSpec spec)
spec
- describes the resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |