Class MappingEventReader<T>

java.lang.Object
org.zalando.fahrschein.MappingEventReader<T>
All Implemented Interfaces:
EventReader<T>

public class MappingEventReader<T> extends Object implements EventReader<T>
  • Constructor Details

    • MappingEventReader

      public MappingEventReader(Class<T> eventClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • read

      public List<T> read(com.fasterxml.jackson.core.JsonParser jsonParser) throws IOException
      Specified by:
      read in interface EventReader<T>
      Throws:
      IOException
    • onMappingException

      protected void onMappingException(com.fasterxml.jackson.databind.JsonMappingException exception) throws IOException
      Throws:
      IOException