Interface PropertySourceReader

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Set<java.lang.String> getExtensions()  
      default java.util.Map<java.lang.String,​java.lang.Object> read​(java.lang.String name, byte[] bytes)
      Read a property source from bytes.
      java.util.Map<java.lang.String,​java.lang.Object> read​(java.lang.String name, java.io.InputStream input)
      Read a property source from an input stream.
    • Method Detail

      • read

        java.util.Map<java.lang.String,​java.lang.Object> read​(java.lang.String name,
                                                                    java.io.InputStream input)
                                                             throws java.io.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:
        java.io.IOException - if there is an error processing the property source
      • getExtensions

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

        default java.util.Map<java.lang.String,​java.lang.Object> read​(java.lang.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