Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.Enumeration;

import java.util.Properties;

import javax.xml.transform.Transformer;

public class Main {
    public static Transformer setStdTransParamsProps(final Transformer renderer, final Properties params) {
        if (params != null) {
            for (Enumeration<Object> e = params.keys(); e.hasMoreElements();) {

                String localkey = (String) e.nextElement();
                String val = params.getProperty(localkey);
                renderer.setParameter(localkey, val);
            }
        }
        return renderer;
    }
}