Simple Solution
  • Java
  • Spring
  • Spring Boot
  • Tutorials
  • Tags
Escape or Unescape String for CSV column data in Java using Apache Commons Text
Escape or Unescape String for CSV column data in Java using Apache Commons Text

In this post we are going to learn how to use StringEscapeUtils class in Apache Commons Text library to escape a String for CSV file format. If the input String value contains a comma, newline or double quote, then the output String value is returned enclosed in double quotes.

Copyright © 2019 SimpleSolution.dev. All Rights Reserved.