Package uk.ac.gda.util.io
Class StreamMacroSubstitutor
java.lang.Object
uk.ac.gda.util.io.StreamMacroSubstitutor
This parses an XML file (and applies string interpolation (a.k.a. variable substitution. Every
XML field in the XML document is examined during processing. Fields which contain a pattern beginning with "${",
followed by a property key name and terminating with a "}", will trigger string interpolation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprocess(Reader in, Writer out, MacroSupplier macroSupplier)
-
Constructor Details
-
StreamMacroSubstitutor
public StreamMacroSubstitutor()
-
-
Method Details
-
process
- Parameters:
in- input xml containing macros of the form ${macroname} to be substitutedout- the source with macros found in macroSupplier change to the suppled valuesmacroSupplier- - supplier of macros for substition- Throws:
IOException
-