|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.log4j.xml.XMLDecoder
public class 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. NOTE: This class has been created on the assumption that all XML log files are encoded in UTF-8. There is no current support for any other encoding format at this time.
| コンストラクタの概要 | |
|---|---|
XMLDecoder()
Create new instance. |
|
XMLDecoder(java.awt.Component o)
Create new instance. |
|
| メソッドの概要 | |
|---|---|
org.apache.log4j.spi.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)
Decodes a String representing a number of events into a Vector of LoggingEvents. |
void |
setAdditionalProperties(java.util.Map properties)
Sets an additionalProperty map, where each Key/Value pair is automatically added to each LoggingEvent as it is decoded. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public XMLDecoder(java.awt.Component o)
o - ownerpublic XMLDecoder()
| メソッドの詳細 |
|---|
public void setAdditionalProperties(java.util.Map properties)
Decoder 内の setAdditionalPropertiesproperties - additional properties
public java.util.Vector decode(java.net.URL url)
throws java.io.IOException
Decoder 内の decodeurl - the url of a file containing events to decode
java.io.IOException - if IO error during processing.public java.util.Vector decodeEvents(java.lang.String document)
Decoder 内の decodeEventsdocument - to decode events from
public org.apache.log4j.spi.LoggingEvent decode(java.lang.String data)
Decoder 内の decodedata - XML fragment
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||