public class OptimizationSession extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANY_ERRORS_OCCURRED_KEY |
static String |
CANVAS_PROCESSOR_KEY |
static String |
CONVERTED_CONTENT_STREAMS_KEY |
static String |
CURRENT_RESOURCES_KEY |
static String |
EVENT_LISTENER_KEY |
static String |
IS_PDF_A_DOCUMENT_KEY |
static String |
PROCESSED_CONTENT_STREAMS_KEY |
static String |
RESOURCES_FOR_CONVERSION_KEY |
static String |
RESOURCES_FOR_STREAM_PROCESSING_KEY |
static String |
WRITER_PROPERTIES_KEY |
Constructor and Description |
---|
OptimizationSession(DefaultReportBuilder reportBuilder)
Creates an instance of OptimizationSession with provided DefaultReportBuilder .
|
Modifier and Type | Method and Description |
---|---|
Object |
getStoredValue(String key)
Retrieves stored value associated with the provided key.
|
void |
registerEvent(SeverityLevel level, String message, Object... args)
Registers an event of optimization process.
|
void |
storeValue(String key, Object value)
Puts a value and a key associated with it into internal storage.
|
public static final String WRITER_PROPERTIES_KEY
public static final String RESOURCES_FOR_CONVERSION_KEY
public static final String CONVERTED_CONTENT_STREAMS_KEY
public static final String RESOURCES_FOR_STREAM_PROCESSING_KEY
public static final String PROCESSED_CONTENT_STREAMS_KEY
public static final String ANY_ERRORS_OCCURRED_KEY
public static final String CURRENT_RESOURCES_KEY
public static final String IS_PDF_A_DOCUMENT_KEY
public static final String CANVAS_PROCESSOR_KEY
public static final String EVENT_LISTENER_KEY
public OptimizationSession(DefaultReportBuilder reportBuilder)
DefaultReportBuilder
.
reportBuilder
- is a report builder
public void registerEvent(SeverityLevel level, String message, Object... args)
level
- is a severity level of the event
message
- is a text message of the event
args
- are arguments of the message if it is parametrized
public Object getStoredValue(String key)
key
- is a key to access the value
Copyright © 1998–2022 iText Group NV. All rights reserved.