public static interface RichTextHTMLConverter.Builder
Modifier and Type | Method and Description |
---|---|
HtmlConversionResult |
convert()
Converts the document or item with the configured options.
|
RichTextHTMLConverter.Builder |
option(HtmlConvertOption option,
String value)
Sets an HTML conversion option based on the
HtmlConvertOption enumeration. |
RichTextHTMLConverter.Builder |
option(String option,
String value)
Sets an HTML conversion option based on a string name.
|
RichTextHTMLConverter.Builder |
options(Collection<HtmlConvertOption> options,
String value)
Sets multiple HTML conversion option based on the
HtmlConvertOption enumeration. |
RichTextHTMLConverter.Builder |
options(Collection<String> options)
Sets multiple HTML conversion options.
|
RichTextHTMLConverter.Builder |
userAgent(String userAgent)
Sets the user agent string to be used during HTML conversion.
|
RichTextHTMLConverter.Builder option(HtmlConvertOption option, String value)
HtmlConvertOption
enumeration.option
- the option to setvalue
- the option's value. This is usually "1"
NullPointerException
- if option
is nullRichTextHTMLConverter.Builder option(String option, String value)
option
- the option to setvalue
- the option's value. This is usually "1"
NullPointerException
- if option
is nullIllegalArgumentException
- if option
is emptyRichTextHTMLConverter.Builder options(Collection<HtmlConvertOption> options, String value)
HtmlConvertOption
enumeration.options
- the options to setvalue
- the options' value. This is usually "1"
NullPointerException
- if option
is nullRichTextHTMLConverter.Builder options(Collection<String> options)
Note: these options must be "key=value"
pairs. To use HtmlConvertOption
values, use the HtmlConvertOption.toOption(String)
method.
options
- the key/value option pairs to set.RichTextHTMLConverter.Builder userAgent(String userAgent)
userAgent
- the user agent string to setHtmlConversionResult convert()
Copyright © 2019–2021 HCL. All rights reserved.