pdfOptimizer 3.0.1 API
iText.Pdfoptimizer.Report.Message.ReportMessage Class Reference

The class is used to store single messages generated during PDF optimization process. More...

Public Member Functions

  ReportMessage (SeverityLevel level, DateTime time, String location, String message)
  Creates an instance of a optimization report message. More...
 
virtual SeverityLevel  GetLevel ()
  Retrieves current SeverityLevel. More...
 
virtual DateTime  GetTime ()
  Retrieves the time when the message was generated. More...
 
virtual String  GetLocation ()
  Retrieves a location where message was generated. More...
 
virtual String  GetMessage ()
  Retrieves content of the message. More...
 

Detailed Description

The class is used to store single messages generated during PDF optimization process.

Constructor & Destructor Documentation

◆ ReportMessage()

iText.Pdfoptimizer.Report.Message.ReportMessage.ReportMessage ( SeverityLevel  level,
DateTime  time,
String  location,
String  message 
)
inline

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

Member Function Documentation

◆ GetLevel()

virtual SeverityLevel iText.Pdfoptimizer.Report.Message.ReportMessage.GetLevel ( )
inlinevirtual

Retrieves current SeverityLevel.

Returns
type of the message

◆ GetLocation()

virtual String iText.Pdfoptimizer.Report.Message.ReportMessage.GetLocation ( )
inlinevirtual

Retrieves a location where message was generated.

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()

virtual String iText.Pdfoptimizer.Report.Message.ReportMessage.GetMessage ( )
inlinevirtual

Retrieves content of the message.

Returns
text of the message

◆ GetTime()

virtual DateTime iText.Pdfoptimizer.Report.Message.ReportMessage.GetTime ( )
inlinevirtual

Retrieves the time when the message was generated.

Returns
time