Class ReaderConfig.Builder

java.lang.Object
dev.hardwood.reader.ReaderConfig.Builder
Enclosing class:
ReaderConfig

public static final class ReaderConfig.Builder extends Object
Builder for ReaderConfig.
  • Method Details

    • option

      public ReaderConfig.Builder option(String key, String value)
      Sets a reader option. An unknown key is ignored (so a transitional flag can be retired without breaking callers) but logged at WARNING when the config is used for a read, so a typo in a live key surfaces rather than silently taking the default.
    • build

      public ReaderConfig build()
      Builds the immutable configuration.