Class ReplaceValueStream


  • public class ReplaceValueStream
    extends Object
    Replaces template parameter values in the stream to avoid parsing issues of templates with numeric expressions
    • Method Detail

      • replaceValues

        public static InputStream replaceValues​(InputStream is,
                                                Map<String,​String> valuesMap)
                                         throws IOException
        Returns a stream with the template parameter expressions replaced
        Parameters:
        is - InputStream inputstream for
        valuesMap - a hashmap containing parameters
        Returns:
        returns stream with template parameter expressions replaced
        Throws:
        IOException - in case of any network/object parse problems