Package com.adobe.xfa
Class LogMessageHandlerStore
- java.lang.Object
-
- com.adobe.xfa.LogMessageHandler
-
- com.adobe.xfa.LogMessageHandlerStore
-
public class LogMessageHandlerStore extends LogMessageHandler
Class LogMessageHandlerStore stores LogMessages in an internal collection so that they may be retrieved at a later time.
-
-
Constructor Summary
Constructors Constructor Description LogMessageHandlerStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearMessages()
Clears out message buffer(s)void
flush()
void
sendMessage(LogMessage message)
Pure virtual function.boolean
supportsRead()
Check whether the handler supports read operations.-
Methods inherited from class com.adobe.xfa.LogMessageHandler
get, getThreadId, getThreshold, setThreshold, size
-
-
-
-
Method Detail
-
clearMessages
public void clearMessages()
Description copied from class:LogMessageHandler
Clears out message buffer(s)- Overrides:
clearMessages
in classLogMessageHandler
-
supportsRead
public boolean supportsRead()
Description copied from class:LogMessageHandler
Check whether the handler supports read operations. If this class'supportsRead()
method returns true, then the messageHandler is capable of caching all of it's messages. These messages can be accessed viaoperator[]
. Thesize()
method can be used to find out the number of messages cached.- Overrides:
supportsRead
in classLogMessageHandler
-
flush
public void flush()
- Specified by:
flush
in classLogMessageHandler
-
sendMessage
public void sendMessage(LogMessage message)
Description copied from class:LogMessageHandler
Pure virtual function. Implemented in derived classes to handle message output.
if you want to cache messages, then the derived implementation of this method should add the following lines:LogMessage poMessage = new LogMessage(oMessage); getMessages().append(poMessage);
- Specified by:
sendMessage
in classLogMessageHandler
- Parameters:
message
- - the message to send
-
-