接口 ConfigParser

所有已知实现类:
AbstractConfigParser, JsonConfigParser, PropertiesConfigParser, YamlConfigParser

public interface ConfigParser
ConfigParser related
从以下版本开始:
1.0.0
作者:
yanhom
  • 方法详细资料

    • supports

      boolean supports(ConfigFileTypeEnum type)
      Judge type.
      参数:
      type - config file type
      返回:
      true if the parse supports this type, else false
    • types

      Type: yaml, properties...
      返回:
      the parse supports types.
    • doParse

      Map<Object,Object> doParse(String content) throws IOException
      Parse content.
      参数:
      content - content
      返回:
      k-v properties
      抛出:
      IOException - if occurs error while parsing
    • doParse

      Map<Object,Object> doParse(String content, String prefix) throws IOException
      Parse content.
      参数:
      content - content
      prefix - key prefix
      返回:
      k-v properties
      抛出:
      IOException - if occurs error while parsing