Package com.saxonica.functions.qt4.csv
Class CsvContentHandler
java.lang.Object
com.saxonica.functions.qt4.csv.CsvContentHandler
A CsvContentHandler's methods are called to create the output sequences from parsing a CSV,
much like a SAX ContentHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendField(UnicodeString value) Appends a field value to the current RecordvoidblankRow()Generate a blank row (that is, a row with zero fields)voidfinishRow(int delimiter) Mark the current row as completeintGet the number of fields present in the current rowGenerates a sequence containing the rows (XDM Arrays) in the CSV
-
Constructor Details
-
CsvContentHandler
-
-
Method Details
-
appendField
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
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
-