public interface CsvBuilder
Modifier and Type | Method and Description |
---|---|
CsvEscapeMode |
getCsvEscapeMode()
Retrieves the CSV escape mode from the CSV escape mode property.
|
char |
getDelimiterChar()
Retrieves the delimiter char from the delimiter char property.
|
Collection<Object> |
getFields()
Retrieves the CSV elements from the CSV elements property.
|
String |
getRecord()
Retrieves the CSV line from the CSV line property.
|
void |
setCsvEscapeMode(CsvEscapeMode aCsvEscapeMode)
Sets the CSV escape mode for the CSV escape mode property.
|
void |
setDelimiterChar(char aDelimiterChar)
Sets the delimiter char for the delimiter char property.
|
default void |
setFields(boolean... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Boolean... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(byte... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Byte... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(char... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Character... aFields)
Sets the CSV elements for the CSV elements property.
|
void |
setFields(Collection<Object> aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(double... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Double... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(float... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Float... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(int... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Integer... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(long... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Long... aFields)
Sets the CSV elements for the CSV elements property.
|
void |
setFields(Object... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(short... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(Short... aFields)
Sets the CSV elements for the CSV elements property.
|
default void |
setFields(String... aFields)
Sets the CSV elements for the CSV elements property.
|
void |
setRecord(String aRecord)
Sets the CSV line for the CSV line property.
|
List<String> |
toFields()
Creates a list of
String elements from the CSV line being set via
setRecord(String) or withRecord(String) . |
String |
toRecord()
Creates a CSV line from the elements being set via
setFields(String[]) or withFields(String[]) . |
String |
toString()
The
String being build by the builder upon the settings of the
attributes. |
String[] |
toStrings()
Creates an array of
String s from the CSV line being set via
setRecord(String) or withRecord(String) . |
default CsvBuilder |
withCsvEscapeMode(CsvEscapeMode aCsvEscapeMode)
Sets the CSV escape mode for the CSV escape mode property.
|
default CsvBuilder |
withDelimiterChar(char aDelimiterChar)
Sets the delimiter char for the delimiter char property.
|
default CsvBuilder |
withFields(boolean... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Boolean... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(byte... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Byte... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(char... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Character... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Collection<Object> aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(double... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Double... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(float... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Float... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(int... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Integer... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(long... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Long... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Object... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(short... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(Short... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withFields(String... aFields)
Sets the CSV elements for the CSV elements property.
|
default CsvBuilder |
withRecord(String aRecord)
Sets the CSV line for the CSV line property.
|
CsvEscapeMode getCsvEscapeMode()
void setCsvEscapeMode(CsvEscapeMode aCsvEscapeMode)
aCsvEscapeMode
- The CSV escape mode to be stored by the align text
mode property.default CsvBuilder withCsvEscapeMode(CsvEscapeMode aCsvEscapeMode)
aCsvEscapeMode
- The CSV escape mode to be stored by the align text
mode property.char getDelimiterChar()
void setDelimiterChar(char aDelimiterChar)
aDelimiterChar
- The delimiter char to be stored by the text align
mode property.default CsvBuilder withDelimiterChar(char aDelimiterChar)
aDelimiterChar
- The delimiter char to be stored by the text align
mode property.String getRecord()
void setRecord(String aRecord)
aRecord
- The CSV line to be stored by the CSV line property.default CsvBuilder withRecord(String aRecord)
aRecord
- The CSV line to be stored by the CSV line property.void setFields(Object... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(boolean... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(byte... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(short... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(int... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(long... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(float... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(double... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(char... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(boolean... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(byte... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(short... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(int... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(long... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(float... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(double... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(char... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Boolean... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Byte... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Short... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Integer... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Long... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Float... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Double... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(Character... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default void setFields(String... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Object... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Boolean... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Byte... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Short... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Integer... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Long... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Float... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Double... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Character... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(String... aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.Collection<Object> getFields()
void setFields(Collection<Object> aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.default CsvBuilder withFields(Collection<Object> aFields)
aFields
- The CSV elements to be stored by the CSV elements
property.List<String> toFields() throws IllegalStateException
String
elements from the CSV line being set via
setRecord(String)
or withRecord(String)
.IllegalStateException
- Thrown in case no elements have been set
via the withFields(String[])
or
setFields(String[])
methods.String toRecord() throws IllegalStateException
setFields(String[])
or withFields(String[])
.IllegalStateException
- Thrown in case no CSV line has been set via
the withRecord(String)
or setRecord(String)
methods.String[] toStrings()
String
s from the CSV line being set via
setRecord(String)
or withRecord(String)
. It should
return the same result as an array as a call to toFields()
.Copyright © 2016. All rights reserved.