Interface ValueReader

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Represents a reader of values from a Reader to a Map of primitive options (using String as a key). When it is implemented, it should implement 1 of the 2 methods, otherwise a IllegalArgumentException is thrown if none of the methods is implemented.
Since:
2.0.0
Author:
MrIvanPlays
  • Method Summary

    Modifier and Type
    Method
    Description
    read(Reader reader, Settings settings)
    Should read the specified reader to a Map.
  • Method Details

    • read

      Map<String,Object> read(Reader reader, Settings settings) throws IOException
      Should read the specified reader to a Map. Can use the specified Settings to manipulate the output of this method, or the ways the reader is parsed to the needed output.
      Parameters:
      reader - the reader we need read
      settings - the settings
      Returns:
      the values read, represented as a map, or empty map if no values have been read
      Throws:
      IOException - if an io occurs