Package com.adobe.xfa.agent
Class MessageHandlerXML
- java.lang.Object
-
- com.adobe.xfa.LogMessageHandler
-
- com.adobe.xfa.agent.MessageHandlerXML
-
public class MessageHandlerXML extends LogMessageHandler
Class MessageHandlerXML formats messages to a XML file. Class MessageHandlerXML will eventually support multiple targets(files) and be able to select targets(files) depending on the severity of a message.
-
-
Constructor Summary
Constructors Constructor Description MessageHandlerXML(OutputStream oSource)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
Flushes any buffered messages to be written out to this object's output stream.void
sendMessage(LogMessage oMessage)
Send message to target using XML file format.-
Methods inherited from class com.adobe.xfa.LogMessageHandler
clearMessages, get, getThreadId, getThreshold, setThreshold, size, supportsRead
-
-
-
-
Constructor Detail
-
MessageHandlerXML
public MessageHandlerXML(OutputStream oSource)
Constructor. Will write out to oSource but does not close the stream file. Note: OutputStream could be any platform-specific implementation.- Parameters:
oSource
- - stream file
-
-
Method Detail
-
flush
public void flush()
Flushes any buffered messages to be written out to this object's output stream.- Specified by:
flush
in classLogMessageHandler
-
sendMessage
public void sendMessage(LogMessage oMessage)
Send message to target using XML file format.- Specified by:
sendMessage
in classLogMessageHandler
- Parameters:
oMessage
- - the message
-
-