Interface ConfigSerializer

All Known Implementing Classes:
DefaultGsonConfigSerializer, KotlinObjectGsonConfigSerializer

public interface ConfigSerializer
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    The config's file extension, without the dot, defaults to "json"
    <T> T
    read(Class<T> configClass, Reader reader)
    Reads the Config instance from file
    void
    write(Object config, Writer writer)
    Writes the Config instance to file
  • Method Details

    • write

      void write(Object config, Writer writer)
      Writes the Config instance to file
    • read

      <T> T read(Class<T> configClass, Reader reader)
      Reads the Config instance from file
    • fileExtension

      default String fileExtension()
      The config's file extension, without the dot, defaults to "json"