public class DefaultReportBuilder extends Object
Constructor and Description |
---|
DefaultReportBuilder(SeverityLevel minimalLevel)
Creates an instance of default ReportBuilder with provided minimal severity level.
|
Modifier and Type | Method and Description |
---|---|
OptimizationResult |
build()
Builds a report based on messages logged with
log(SeverityLevel, Date, LocationStack, String, Object...) . |
protected ArrayList<ReportMessage> |
getMessages()
Returns list of logged messages.
|
ReportMessage |
log(SeverityLevel level,
Date time,
LocationStack location,
String message,
Object... params)
Creates a message during PDF optimization process with provided severity level and message.
|
protected void |
processMessage(ReportMessage message)
Allows to provide additional logic of message processing.
|
public DefaultReportBuilder(SeverityLevel minimalLevel)
minimalLevel
- is a minimal SeverityLevel
public final ReportMessage log(SeverityLevel level, Date time, LocationStack location, String message, Object... params)
level
- is a SeverityLevel
of the messagetime
- is a time when the message was generatedlocation
- is a string representation of the origin of the messagemessage
- is a text of the messageparams
- is an array of parameters of the messagepublic OptimizationResult build()
log(SeverityLevel, Date, LocationStack, String, Object...)
.protected ArrayList<ReportMessage> getMessages()
protected void processMessage(ReportMessage message)
log(SeverityLevel, Date, LocationStack, String, Object...)
method.message
- is a message to processCopyright © 1998–2024 iText Group NV. All rights reserved.