public final class HtmlLoadOptions extends LoadOptions
When importing, each paragraph will be translated to spreadsheet row. Text values will be merged in spreadsheet cell. Table rows and cells will be translated to spreadsheet rows and cells. All content inside table cell will be merged in spreadsheet cell, even nested tables and paragraphs.
Constructor and Description |
---|
HtmlLoadOptions()
Initializes a new instance of the
HtmlLoadOptions class. |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Gets the charset for the HTML file.
|
NumberType |
getNumberType()
Gets a value indicating numeric type used when parsing strings to numeric types.
|
Locale |
getParseLocale()
Gets the Locale for the HTML file.
|
boolean |
isParseNumbers()
Gets a value indicating whether numbers will be parsed and stored as
double value when loading HTML file. |
void |
setCharset(Charset value)
Sets the charset for the HTML file.
|
void |
setNumberType(NumberType value)
Sets a value indicating numeric type used when parsing strings to numeric types.
|
void |
setParseLocale(Locale locale)
Sets the Locale for the HTML file.
|
void |
setParseNumbers(boolean parseNumbers)
Sets a value indicating whether numbers will be parsed and stored as
double value when loading HTML file. |
getCsvDefault, getHtmlDefault, getOdsDefault, getXlsDefault, getXlsxDefault
public HtmlLoadOptions()
HtmlLoadOptions
class.public Charset getCharset()
public NumberType getNumberType()
Default value is NumberType.DOUBLE
NumberType
public Locale getParseLocale()
public boolean isParseNumbers()
double
value when loading HTML file. If false
, numbers will be loaded as strings.public void setCharset(Charset value)
NullPointerException
- Value is set to null
.public void setNumberType(NumberType value)
Default value is NumberType.DOUBLE
NumberType
public void setParseLocale(Locale locale)
NullPointerException
- Value is set to null
.public void setParseNumbers(boolean parseNumbers)
double
value when loading HTML file. If false
, numbers will be loaded as strings.© GemBox d.o.o. — All rights reserved.