CSVUtil (Lucene 10.5.0 common API)
Description: declaration: package: org.apache.lucene.analysis.util, class: CSVUtil

Package org.apache.lucene.analysis.util

# Class CSVUtil

java.lang.Object
org.apache.lucene.analysis.util.CSVUtil

public final class CSVUtil extends Object
Utility class for parsing CSV text

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String[]`
  `parse(String line)`
  Parse CSV line
  `static String`
  `quoteEscape(String original)`
  Quote and escape input value for CSV

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### parse

    public static String[] parse(String line)
    Parse CSV line
    Parameters:
      `line` - line containing csv-encoded data
    Returns:
      Array of values

  - ### quoteEscape

    public static String quoteEscape(String original)
    Quote and escape input value for CSV