Class JSONFileReader

java.lang.Object
eu.europa.ec.taxud.validation.reader.JSONFileReader
All Implemented Interfaces:
Reader

public class JSONFileReader extends Object implements Reader
The type Json file reader.
  • Constructor Details

    • JSONFileReader

      public JSONFileReader()
  • Method Details

    • getInputFormat

      public InputFormatType getInputFormat()
      Description copied from interface: Reader
      Return the input format supported by the reader.
      Specified by:
      getInputFormat in interface Reader
      Returns:
      Input format supported by the reader
    • setValidator

      public void setValidator(Validator validator)
      Description copied from interface: Reader
      Set Validation to call during the reading.
      Specified by:
      setValidator in interface Reader
      Parameters:
      validator - Validator to apply.
    • read

      public void read(ValidationInput input, ValidationContext context) throws ValidationException
      Description copied from interface: Reader
      Main method to process the input.
      Specified by:
      read in interface Reader
      Parameters:
      input - The input to read
      context - Validation context with all information required
      Throws:
      ValidationException - The read exception.