Enum ConfigParserFactory

java.lang.Object
java.lang.Enum<ConfigParserFactory>
org.bytemechanics.config.manager.internal.ConfigParserFactory
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConfigParserFactory>, java.lang.constant.Constable, ConfigParser

public enum ConfigParserFactory
extends java.lang.Enum<ConfigParserFactory>
implements ConfigParser
Author:
afarre
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    PROPERTIES  
    YAML  
  • Method Summary

    Modifier and Type Method Description
    boolean canRead​(java.lang.String _path)  
    java.lang.String[] getSuffixes()  
    static java.util.stream.Stream<Config> read​(java.io.Reader _reader, java.net.URI _location)  
    static java.lang.String validFormats()  
    static ConfigParserFactory valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ConfigParser valueOf​(java.net.URI _location)
    Returns the enum constant of this type with the specified name.
    static ConfigParserFactory[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.
    static void write​(java.io.Writer _writer, java.net.URI _location, java.util.stream.Stream<Config> _config)  

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bytemechanics.config.manager.internal.ConfigParser

    read, write
  • Enum Constant Details

  • Method Details

    • values

      public static ConfigParserFactory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ConfigParserFactory valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getSuffixes

      public java.lang.String[] getSuffixes()
    • canRead

      public boolean canRead​(java.lang.String _path)
    • validFormats

      public static final java.lang.String validFormats()
    • valueOf

      public static final ConfigParser valueOf​(java.net.URI _location)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      _location - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • read

      public static java.util.stream.Stream<Config> read​(java.io.Reader _reader, java.net.URI _location)
    • write

      public static void write​(java.io.Writer _writer, java.net.URI _location, java.util.stream.Stream<Config> _config)