Class JSONFileReader
java.lang.Object
eu.europa.ec.taxud.validation.reader.JSONFileReader
- All Implemented Interfaces:
Reader
The type Json file reader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the input format supported by the reader.voidread(ValidationInput input, ValidationContext context) Main method to process the input.voidsetValidator(Validator validator) Set Validation to call during the reading.
-
Constructor Details
-
JSONFileReader
public JSONFileReader()
-
-
Method Details
-
getInputFormat
Description copied from interface:ReaderReturn the input format supported by the reader.- Specified by:
getInputFormatin interfaceReader- Returns:
- Input format supported by the reader
-
setValidator
Description copied from interface:ReaderSet Validation to call during the reading.- Specified by:
setValidatorin interfaceReader- Parameters:
validator- Validator to apply.
-
read
Description copied from interface:ReaderMain method to process the input.- Specified by:
readin interfaceReader- Parameters:
input- The input to readcontext- Validation context with all information required- Throws:
ValidationException- The read exception.
-