public interface LineValidator
String
read by the
Reader
in the CSVReader
before it is
processed.
This should only be used if you have a very good understanding and full control of the data being processed.
Since this is working on an individual line it may not be a full record if an element has a newline character in it.
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(String line)
Performs the validation check on the string and returns the result.
|
void |
validate(String line)
Performs the validation check on the string and throws an exception if
invalid.
|
boolean isValid(String line)
line
- String
to be validatedtrue
if the line is valid, false
otherwisevoid validate(String line) throws CsvValidationException
line
- String
to be validatedCsvValidationException
- Thrown if invalid. Should contain a
message describing the error.Copyright © 2005–2023. All rights reserved.