Class CsvMetaData
java.lang.Object
com.aquima.interactions.framework.service.connectivity.parameters.MetaData
com.aquima.interactions.framework.service.connectivity.csv.CsvMetaData
This class is responsible for parsing the csv metadata.
- Since:
- 6.3
- Author:
- Jon van Leuven
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the charset for the csv;int[]
This method returns the column widths for a fixed width text resource.char
This method returns the delimiter to use for separating entries.char
This method returns the character to use for quoted elements.boolean
This method returns true if the csv resource's first row contains the headers.boolean
This method returns true the resource should be parsed as a fixed width text resource.Methods inherited from class com.aquima.interactions.framework.service.connectivity.parameters.MetaData
getFormatNameFor, getInstanceAction
-
Constructor Details
-
CsvMetaData
-
-
Method Details
-
hasRowHeaders
public boolean hasRowHeaders()This method returns true if the csv resource's first row contains the headers.- Returns:
- True if the first row are the headers.
-
getTextQualifier
public char getTextQualifier()This method returns the character to use for quoted elements.- Returns:
- The character for quoted elements.
-
getDelimiter
public char getDelimiter()This method returns the delimiter to use for separating entries.- Returns:
- The he delimiter to use for separating entries..
-
getColumnWidths
public int[] getColumnWidths()This method returns the column widths for a fixed width text resource.- Returns:
- An array of column widths.
-
isFixedWidthText
public boolean isFixedWidthText()This method returns true the resource should be parsed as a fixed width text resource.- Returns:
- True if it is a fixed width resource, false if it is a standard csv resource.
-
getCharset
This method returns the charset for the csv;- Returns:
- The charset value if defined in the studio model; null otherwise.
-