Class TextLineWriter.CSVLineBuilder
java.lang.Object
org.ojalgo.netio.TextLineWriter.CSVLineBuilder
- Enclosing class:
TextLineWriter
A reusable delimited "text line" builder. When writing CSV data this can help create the lines/rows.
It's backed by the
TextLineWriter used to instantiate it. Just specify the delimiter, once, and
start creating lines/rows.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final StringBuilderprivate final TextLineWriter -
Constructor Summary
ConstructorsConstructorDescriptionCSVLineBuilder(TextLineWriter writer, char delimiter) CSVLineBuilder(TextLineWriter writer, String delimiter) -
Method Summary
Modifier and TypeMethodDescriptionappend(boolean colVal) append(byte colVal) append(char colVal) append(double colVal) append(float colVal) append(int colVal) append(long colVal) append(short colVal) private voiddelimit()voidvoidwrite()Write the line/row and reset the builder – ready to build the next line.
-
Field Details
-
myDelimiter
-
myTextLine
-
myWriter
-
-
Constructor Details
-
CSVLineBuilder
CSVLineBuilder(TextLineWriter writer, char delimiter) -
CSVLineBuilder
CSVLineBuilder(TextLineWriter writer, String delimiter)
-
-
Method Details
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
line
-
write
public void write()Write the line/row and reset the builder – ready to build the next line. -
delimit
private void delimit()
-