public final class FixedWidthLoadOptions extends LoadOptions
Constructor and Description |
---|
FixedWidthLoadOptions(FixedWidthColumn... columns)
Initializes a new instance of the
FixedWidthLoadOptions class. |
FixedWidthLoadOptions(Iterable<FixedWidthColumn> columns)
Initializes a new instance of the
FixedWidthLoadOptions class. |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Gets the charset for the Fixed-Width Text file.
|
List<FixedWidthColumn> |
getColumns()
Gets the list of column definitions for Fixed-Width Text file.
|
Locale |
getLocale()
Gets the locale for the Fixed-Width Text file.
|
NumberType |
getNumberType()
Gets a value indicating numeric type used when parsing strings to numeric types.
|
int |
getStartRow()
Gets the index of the first row of data being loaded from Fixed-Width Text file.
|
boolean |
isParseNumbers()
Gets a value indicating whether numbers will be parsed and stored as
double value when loading Fixed-Width Text file. |
void |
setCharset(Charset charset)
Gets the charset for the Fixed-Width Text file.
|
void |
setLocale(Locale locale)
Gets the locale for the Fixed-Width Text file.
|
void |
setNumberType(NumberType numberType)
Sets a value indicating numeric type used when parsing strings to numeric types.
|
void |
setParseNumbers(boolean parseNumbers)
Sets a value indicating whether numbers will be parsed and stored as
double value when loading Fixed-Width Text file. |
void |
setStartRow(int startRow)
Sets the index of the first row of data being loaded from Fixed-Width Text file.
|
getCsvDefault, getHtmlDefault, getOdsDefault, getXlsDefault, getXlsxDefault
public FixedWidthLoadOptions(FixedWidthColumn... columns)
FixedWidthLoadOptions
class.columns
- The column definitions for Fixed-Width Text file.public FixedWidthLoadOptions(Iterable<FixedWidthColumn> columns)
FixedWidthLoadOptions
class.columns
- The column definitions for Fixed-Width Text file.public Charset getCharset()
public List<FixedWidthColumn> getColumns()
public Locale getLocale()
public NumberType getNumberType()
Default value is NumberType.DOUBLE
NumberType
public int getStartRow()
public boolean isParseNumbers()
double
value when loading Fixed-Width Text file. If false
, numbers will be loaded as strings.public void setCharset(Charset charset)
NullPointerException
- Value is set to null.public void setLocale(Locale locale)
NullPointerException
- Value is set to null.public void setNumberType(NumberType numberType)
Default value is NumberType.DOUBLE
NumberType
public void setParseNumbers(boolean parseNumbers)
double
value when loading Fixed-Width Text file. If false
, numbers will be loaded as strings.public void setStartRow(int startRow)
© GemBox d.o.o. — All rights reserved.