|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.xml.XMLDecoder
Decodes Logging Events in XML formated into elements that are used by Chainsaw. This decoder can process a collection of log4j:event nodes ONLY (no XML declaration nor eventSet node) NOTE: Only a single LoggingEvent is returned from the decode method even though the DTD supports multiple events nested in an eventSet.
Constructor Summary | |
XMLDecoder()
|
|
XMLDecoder(java.awt.Component owner)
|
Method Summary | |
LoggingEvent |
decode(java.lang.String data)
Converts the string data into an XML Document, and then soaks out the relevant bits to form a new LoggingEvent instance which can be used by any Log4j element locally. |
java.util.Vector |
decode(java.net.URL url)
Decodes a File into a Vector of LoggingEvents |
java.util.Vector |
decodeEvents(java.lang.String document)
|
void |
setAdditionalProperties(java.util.Map additionalProperties)
Sets an additionalProperty map, where each Key/Value pair is automatically added to each LoggingEvent as it is decoded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLDecoder(java.awt.Component owner)
public XMLDecoder()
Method Detail |
public void setAdditionalProperties(java.util.Map additionalProperties)
setAdditionalProperties
in interface Decoder
additionalProperties
- public java.util.Vector decode(java.net.URL url) throws java.io.IOException
decode
in interface Decoder
url
- the url of a file containing events to decode
java.io.IOException
public java.util.Vector decodeEvents(java.lang.String document)
decodeEvents
in interface Decoder
public LoggingEvent decode(java.lang.String data)
decode
in interface Decoder
data
-
|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |