public class OptimizationSession extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONVERTED_CONTENT_STREAMS_KEY |
static String |
CURRENT_RESOURCES_KEY |
static String |
IS_PDF_A_DOCUMENT_KEY |
static String |
RESOURCES_FOR_CONVERSION_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 CURRENT_RESOURCES_KEY
public static final String IS_PDF_A_DOCUMENT_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–2020 iText Group NV. All rights reserved.