Package com.adobe.xfa

Class 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 Detail

      • LogMessageHandlerStore

        public LogMessageHandlerStore()
    • Method Detail

      • 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 via operator[]. The size() method can be used to find out the number of messages cached.
        Overrides:
        supportsRead in class LogMessageHandler
      • 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 class LogMessageHandler
        Parameters:
        message - - the message to send