Interface PropertySourceReader

All Known Subinterfaces:
PropertySourceLoader
All Known Implementing Classes:
AbstractPropertySourceLoader, CloudFoundryVcapApplicationPropertySourceLoader, CloudFoundryVcapServicesPropertySourceLoader, EnvJsonPropertySourceLoader, JsonPropertySourceLoader, JsonPropertySourceLoader, PropertiesPropertySourceLoader, YamlPropertySourceLoader

public interface PropertySourceReader
Interface for classes that read and process properties sources.
Since:
1.0
Author:
graemerocher
  • Method Details

    • read

      Map<String,Object> read(String name, InputStream input) throws IOException
      Read a property source from an input stream.
      Parameters:
      name - The name of the property source
      input - The bytes
      Returns:
      A map of string to values
      Throws:
      IOException - if there is an error processing the property source
    • getExtensions

      default Set<String> getExtensions()
      Returns:
      The extensions this reader supports.
    • read

      default Map<String,Object> read(String name, byte[] bytes)
      Read a property source from bytes.
      Parameters:
      name - The name of the property source
      bytes - The bytes
      Returns:
      A map of string to values