Class CsvContentHandler

java.lang.Object
com.saxonica.functions.qt4.csv.CsvContentHandler

public class CsvContentHandler extends Object
A CsvContentHandler's methods are called to create the output sequences from parsing a CSV, much like a SAX ContentHandler
  • Constructor Details

  • Method Details

    • appendField

      public void appendField(UnicodeString value)
      Appends a field value to the current Record
    • finishRow

      public void finishRow(int delimiter)
      Mark the current row as complete
      Parameters:
      delimiter - the delimiter ending the row: either a row-delimiter, or -1 indicating the end of the input string.
    • blankRow

      public void blankRow()
      Generate a blank row (that is, a row with zero fields)
    • getSequenceOfRows

      public SequenceIterator getSequenceOfRows()
      Generates a sequence containing the rows (XDM Arrays) in the CSV
      Returns:
      a sequence of rows, represented as XDM arrays of xs:string values
    • getCurrentRowSize

      public int getCurrentRowSize()
      Get the number of fields present in the current row
      Returns:
      the number of fields in the row