Class SnakeYamlOptions

java.lang.Object
space.arim.dazzleconf.ext.snakeyaml.SnakeYamlOptions

public final class SnakeYamlOptions extends Object
Options for SnakeYAML configurations
Author:
A248
  • Method Details

    • yamlSupplier

      public Supplier<org.yaml.snakeyaml.Yaml> yamlSupplier()
      Gets the yaml supplier used
      Returns:
      the yaml supplier
    • commentMode

      public CommentMode commentMode()
      Gets the comment mode used. The mode exposes no data but may be used for comparison with other comment modes via equals
      Returns:
      the comment mode
    • useCommentingWriter

      @Deprecated public boolean useCommentingWriter()
      Deprecated.
      The choice of comments is no longer limited to whether the alternate writer is used. Use CommentMode instead
      Whether the commenting alternative writer should be used. See SnakeYamlOptions.Builder.useCommentingWriter(boolean) for more details.
      Returns:
      whether the alternative yaml writer is enabled
    • charset

      public Charset charset()
      Gets the charset used
      Returns:
      the charset
    • toString

      public String toString()
      Overrides:
      toString in class Object