Class ReportMessage

java.lang.Object
com.itextpdf.pdfoptimizer.report.message.ReportMessage

public class ReportMessage extends Object
The class is used to store single messages generated during PDF optimization process.
  • Constructor Details

    • ReportMessage

      public ReportMessage (SeverityLevel level, Date time, String location, String message)
      Creates an instance of a optimization report message.
      Parameters:
      level - is a SeverityLevel of the message
      time - is a time when the message was generated
      location - is a string representation of the origin of the message
      message - is a text of the message
  • Method Details

    • getLevel

      public SeverityLevel getLevel()
      Retrieves current SeverityLevel.
      Returns:
      type of the message
    • getTime

      public Date getTime()
      Retrieves the time when the message was generated.
      Returns:
      time
    • getLocation

      public String getLocation()
      Retrieves a location where message was generated. This is a light-weighted analogue of stack trace mechanism.
      Returns:
      an origin of the message as String
    • getMessage

      public String getMessage()
      Retrieves content of the message.
      Returns:
      text of the message