Class ReportMessage
java.lang.Object
com.itextpdf.pdfoptimizer.report.message.ReportMessage
The class is used to store single messages generated during PDF optimization process.
-
Constructor Summary
ConstructorDescriptionReportMessage
(SeverityLevel level, Date time, String location, String message) Creates an instance of a optimization report message. -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
Retrieves currentSeverityLevel
.Retrieves a location where message was generated.Retrieves content of the message.getTime()
Retrieves the time when the message was generated.
-
Constructor Details
-
ReportMessage
Creates an instance of a optimization report message.- Parameters:
-
level
- is aSeverityLevel
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
Retrieves currentSeverityLevel
.- Returns:
- type of the message
-
getTime
Retrieves the time when the message was generated.- Returns:
- time
-
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
Retrieves content of the message.- Returns:
- text of the message
-