franta-hg@21: package info.glogalcode.parameterLister.modules; franta-hg@21: franta-hg@21: import info.glogalcode.parameterLister.OutputModule; franta-hg@21: import info.glogalcode.parameterLister.OutputModuleException; franta-hg@21: import java.io.OutputStream; franta-hg@21: import java.io.PrintWriter; franta-hg@21: import java.util.List; franta-hg@21: franta-hg@21: /** franta-hg@21: * franta-hg@21: * @author Ing. František Kučera (frantovo.cz) franta-hg@21: */ franta-hg@22: public class XmlModule implements OutputModule { franta-hg@21: franta-hg@21: @Override franta-hg@21: public void process(OutputStream output, List parameters) throws OutputModuleException { franta-hg@21: try (PrintWriter out = new PrintWriter(output)) { franta-hg@21: for (String parameter : parameters) { franta-hg@22: out.print("xml> "); franta-hg@21: out.println(parameter); franta-hg@21: out.flush(); franta-hg@21: } franta-hg@21: } franta-hg@21: } franta-hg@21: franta-hg@21: }