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 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
params
- is an array of parameters of the message
public 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 process
Copyright © 1998–2020 iText Group NV. All rights reserved.