| Package | Description |
|---|---|
| org.nuiton.csv |
This package contains a framework to import and export data from a
csv file using a model which permits us to validate what to do.
|
| Modifier and Type | Method and Description |
|---|---|
ExporterBuilder<O> |
ExporterBuilder.addColumn(String propertyName)
Add a new column for the given property name, using also the property name as the export header name.
|
ExporterBuilder<O> |
ExporterBuilder.addColumn(String headerName,
String propertyName)
Add a new column for the given property name and export as the given header name.
|
<T> ExporterBuilder<O> |
ExporterBuilder.addColumn(String headerName,
String propertyName,
ValueFormatter<T> valueFormatter)
Add a new column for the given property name and export as the given header name.
|
ExporterBuilder<O> |
ExporterBuilder.addColumn(String headerName,
ValueGetter<O,String> valueGetter)
Add a new column for the given property name and export as the given header name.
|
<T> ExporterBuilder<O> |
ExporterBuilder.addColumn(String headerName,
ValueGetter<O,T> valueGetter,
ValueFormatter<T> valueFormatter)
Add a new column for the given property name and exported as the given header name.
|
ExporterBuilder<O> |
ExporterBuilder.addColumns(Iterable<ExportableColumn<O,Object>> columns)
Add the given columns.
|
static <O> ExporterBuilder<O> |
Exporter.builder()
Creates a new empty exporter builder.
|
static <O> ExporterBuilder<O> |
Exporter.builder(ExporterConfiguration<O> configuration)
Creates a new exporter builder from the given configuration.
|
static <O> ExporterBuilder<O> |
Exporter.builder(ExportModel<O> model)
Creates a new exporter builder from the given model.
|
ExporterBuilder<O> |
ExporterBuilder.setCellSeparator(String cellSeparator)
Set the
ExporterConfiguration.cellSeparator and return the builder. |
ExporterBuilder<O> |
ExporterBuilder.setCharset(Charset charset)
Set the
ExporterConfiguration.charset and return the builder. |
ExporterBuilder<O> |
ExporterBuilder.setEndOfLineSeparator(String endOfLineSeparator)
Set the
ExporterConfiguration.endOfLineSeparator and return the builder. |
ExporterBuilder<O> |
Exporter.toBuilder()
Creates a new exporter builder from this exporter (to reuse his configuration).
|
Copyright © 2013–2022 Code Lutin. All rights reserved.