Entering String and Integer values #62
-
I couldn't find any example, where my row data have multiple data types. It looks like writeRow is only accepting String array. |
Beta Was this translation helpful? Give feedback.
Answered by
osiegmar
Feb 8, 2022
Replies: 1 comment
-
FastCSV is a fairly low-level CSV implementation that simply implements CSV as defined per RFC-4180 in a robust and high performant manner. FastCSV does not perform any data type mapping or conversion on its own, as this is not the intended purpose. If you want to write Integer values you have to convert them to String (e.g. by using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
osiegmar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FastCSV is a fairly low-level CSV implementation that simply implements CSV as defined per RFC-4180 in a robust and high performant manner. FastCSV does not perform any data type mapping or conversion on its own, as this is not the intended purpose. If you want to write Integer values you have to convert them to String (e.g. by using
java.lang.Integer#toString()
orjava.lang.Integer#toString(int)
) first.