Class YamlConfigurationFile

java.lang.Object
me.neznamy.tab.api.config.ConfigurationFile
me.neznamy.tab.api.config.YamlConfigurationFile

public class YamlConfigurationFile extends ConfigurationFile
YAML implementation of ConfigurationFile
  • Constructor Details

    • YamlConfigurationFile

      public YamlConfigurationFile(InputStream source, File destination) throws org.yaml.snakeyaml.error.YAMLException, IOException
      Constructs new instance and attempts to load specified configuration file. If file does not exist, default file is copied from source.
      Parameters:
      source - Source to copy file from if it does not exist
      destination - File destination to use
      Throws:
      IllegalArgumentException - if destination is null
      IllegalStateException - if file does not exist and source is null
      org.yaml.snakeyaml.error.YAMLException - if file has invalid YAML syntax
      IOException - if I/O operation with the file unexpectedly fails
  • Method Details