java.lang.Object
ml.karmaconfigs.api.common.karmafile.karmayaml.KYMSource

public final class KYMSource extends Object
Karma yaml manager source
  • Constructor Details

    • KYMSource

      public KYMSource(Reader configuration)
      Initialize the yaml source
      Parameters:
      configuration - the yaml
    • KYMSource

      public KYMSource(InputStream configuration)
      Initialize the yaml source
      Parameters:
      configuration - the yaml
    • KYMSource

      public KYMSource(String configuration, boolean isPath)
      Initialize the yaml source
      Parameters:
      configuration - the yaml configuration/path
      isPath - if the yaml configuration string is a path
    • KYMSource

      public KYMSource(File configuration)
      Initialize the yaml source
      Parameters:
      configuration - the yaml
    • KYMSource

      public KYMSource(Path configuration)
      Initialize the yaml source
      Parameters:
      configuration - the yaml
    • KYMSource

      public KYMSource(Map<?,​?> values)
      Initialize the yaml source
      Parameters:
      values - the yaml key/value
  • Method Details

    • getSource

      @NotNull public @NotNull Object getSource()
      Get the yaml source
      Returns:
      the yaml source