Package com.saxonica.functions.qt4.csv
Class CsvRecordGenerator
java.lang.Object
com.saxonica.functions.qt4.csv.CsvRepresentationGenerator
com.saxonica.functions.qt4.csv.CsvRecordGenerator
Handles generating a
parsed-csv-record-structure from a sequence of array items
(array(xs:string)*).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic MapItemRepresents an entirely empty CSV - no column information, and no rows of data.Fields inherited from class com.saxonica.functions.qt4.csv.CsvRepresentationGenerator
explicitColumnNames, extractHeaderRow, options, rowAdjuster, trimRows -
Constructor Summary
ConstructorsConstructorDescriptionCsvRecordGenerator(Map<String, GroundedValue> options) Construct an instance using the passed in options Map. -
Method Summary
Modifier and TypeMethodDescriptionGenerate aparsed-csv-structure-recordfrom the provided sequence of rows (array(xs:string)*.Methods inherited from class com.saxonica.functions.qt4.csv.CsvRepresentationGenerator
generateColumnNames, makeRowTrimmer
-
Field Details
-
EMPTY_CSV
Represents an entirely empty CSV - no column information, and no rows of data.
-
-
Constructor Details
-
CsvRecordGenerator
Construct an instance using the passed in options Map.- Parameters:
options- options for the conversion as a map of String : Sequence pairs- Throws:
XPathException- if there's a problem getting values from the options
-
-
Method Details
-
fromRowSequence
Generate aparsed-csv-structure-recordfrom the provided sequence of rows (array(xs:string)*.- Specified by:
fromRowSequencein classCsvRepresentationGenerator- Parameters:
rows- the sequence of rows (ArrayItems)- Returns:
- the
parsed-csv-structure-recordMapItem - Throws:
XPathException- if it fails
-