Class TOMLConfigurationLoader

java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
me.lucko.configurate.toml.TOMLConfigurationLoader
All Implemented Interfaces:
org.spongepowered.configurate.ConfigurationNodeFactory<org.spongepowered.configurate.BasicConfigurationNode>, org.spongepowered.configurate.loader.ConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>

public class TOMLConfigurationLoader extends org.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
A loader for the TOML configurations, using the toml4j library for parsing and generation.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
  • Field Summary

    Fields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader

    CONFIGURATE_LINE_PATTERN, CONFIGURATE_LINE_SEPARATOR, sink, source, SYSTEM_LINE_SEPARATOR
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new TOMLConfigurationLoader builder.
    org.spongepowered.configurate.BasicConfigurationNode
    createNode​(org.spongepowered.configurate.ConfigurationOptions options)
     
    protected void
    loadInternal​(org.spongepowered.configurate.BasicConfigurationNode node, BufferedReader reader)
     
    protected void
    saveInternal​(org.spongepowered.configurate.ConfigurationNode node, Writer writer)
     

    Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader

    canLoad, canSave, checkCanWrite, defaultCommentHandler, defaultOptions, load, loadToReference, save, writeHeaderInternal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.spongepowered.configurate.loader.ConfigurationLoader

    load

    Methods inherited from interface org.spongepowered.configurate.ConfigurationNodeFactory

    createNode, createNode, createNode, toListCollector, toListCollector, toMapCollector, toMapCollector
  • Method Details

    • builder

      public static @NonNull TOMLConfigurationLoader.Builder builder()
      Creates a new TOMLConfigurationLoader builder.
      Returns:
      A new builder
    • loadInternal

      protected void loadInternal(org.spongepowered.configurate.BasicConfigurationNode node, BufferedReader reader) throws org.spongepowered.configurate.loader.ParsingException
      Specified by:
      loadInternal in class org.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
      Throws:
      org.spongepowered.configurate.loader.ParsingException
    • saveInternal

      protected void saveInternal(org.spongepowered.configurate.ConfigurationNode node, Writer writer) throws org.spongepowered.configurate.ConfigurateException
      Specified by:
      saveInternal in class org.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
      Throws:
      org.spongepowered.configurate.ConfigurateException
    • createNode

      public org.spongepowered.configurate.BasicConfigurationNode createNode(org.spongepowered.configurate.ConfigurationOptions options)