Class LogMessageDecorator

java.lang.Object
com.itextpdf.pdfoptimizer.report.decorator.LogMessageDecorator
All Implemented Interfaces:
IMessageDecorator

public class LogMessageDecorator extends Object implements IMessageDecorator
THe class is responsible for building string representation of the ReportMessage according to the following pattern: Location: Message if location is not empty and Message otherwise.
  • Constructor Details

    • LogMessageDecorator

      public LogMessageDecorator()
  • Method Details

    • decorateMessage

      public String decorateMessage (ReportMessage message)
      Displays source of the message (if it is not empty) and its content.
      Specified by:
      decorateMessage in interface IMessageDecorator
      Parameters:
      message - is a message of the optimization report
      Returns:
      string representation of the message