Uses of Class
com.opencsv.exceptions.CsvValidationException
-
Packages that use CsvValidationException Package Description com.opencsv A very simple CSV parser for Java released under a commercial-friendly license.com.opencsv.bean A bean binding interface for use with opencsv.com.opencsv.bean.concurrent This package collects all classes necessary for the parallel processing of beans.com.opencsv.bean.validators com.opencsv.validators -
-
Uses of CsvValidationException in com.opencsv
Methods in com.opencsv that throw CsvValidationException Modifier and Type Method Description private java.lang.String[]
CSVReader. flexibleRead(boolean popLine, boolean validate)
Reads a line of input, popping or validating as desired.java.util.Map<java.lang.String,java.lang.String>
CSVReaderHeaderAware. readMap()
Reads the next line and returns a map of header values and data values.java.lang.String[]
CSVReader. readNext()
Reads the next line from the buffer and converts to a string array.java.lang.String[]
CSVReaderHeaderAware. readNext(java.lang.String... headerNames)
Retrieves a specific data element from a line based on the value of the header.private void
CSVReader. validateLine(long lastSuccessfulLineRead, java.lang.String nextLine)
Runs all line validators on the input.protected void
CSVReader. validateResult(java.lang.String[] result, long lineStartOfRow)
Increments the number of records read if the result passed in is not null.Constructors in com.opencsv that throw CsvValidationException Constructor Description CSVIterator(CSVReader reader)
-
Uses of CsvValidationException in com.opencsv.bean
Methods in com.opencsv.bean that throw CsvValidationException Modifier and Type Method Description private java.lang.String
AbstractBeanField. preProcessValue(PreAssignmentProcessor processor, java.lang.String value)
private void
CsvToBean.CsvToBeanIterator. readLineWithPossibleError()
void
AbstractBeanField. setFieldValue(java.lang.Object bean, java.lang.String value, java.lang.String header)
protected void
AbstractMappingStrategy. setFieldValue(java.util.Map<java.lang.Class<?>,java.lang.Object> beanTree, java.lang.String value, int column)
Populates the field corresponding to the column position indicated of the bean passed in according to the rules of the mapping strategy.void
BeanField. setFieldValue(java.lang.Object bean, java.lang.String value, java.lang.String header)
Populates the selected field of the bean.private void
AbstractBeanField. validateValue(PreAssignmentValidator validator, java.lang.String value)
-
Uses of CsvValidationException in com.opencsv.bean.concurrent
Methods in com.opencsv.bean.concurrent that throw CsvValidationException Modifier and Type Method Description java.lang.String[]
SingleLineReader. readNextLine()
Reads from theCSVReader
provided on instantiation until a usable line of input is found. -
Uses of CsvValidationException in com.opencsv.bean.validators
Methods in com.opencsv.bean.validators that throw CsvValidationException Modifier and Type Method Description void
MustMatchRegexExpression. validate(java.lang.String value, BeanField field)
void
StringValidator. validate(java.lang.String value, BeanField field)
Performs the validation check on the string and throws an exception if invalid. -
Uses of CsvValidationException in com.opencsv.validators
Methods in com.opencsv.validators that throw CsvValidationException Modifier and Type Method Description void
LineValidator. validate(java.lang.String line)
Performs the validation check on the string and throws an exception if invalid.void
LineValidatorAggregator. validate(java.lang.String line)
Runs all LineValidators validate commands and if the string is invalid then it combines all the validation error messages in a single CsvValidationException.void
RowFunctionValidator. validate(java.lang.String[] row)
void
RowMustHaveSameNumberOfColumnsAsFirstRowValidator. validate(java.lang.String[] row)
void
RowValidator. validate(java.lang.String[] row)
Performs the validation check on the row (an array ofString
s) and throws an exception if invalid.void
RowValidatorAggregator. validate(java.lang.String[] row)
Runs allRowValidator
s'RowValidator.validate(String[])
methods and if the string array is invalid, then it combines all the validation error messages in a single CsvValidationException.
-