Java XML Transform getTransformer()

Here you can find the source of getTransformer()

Description

get Transformer

License

Open Source License

Declaration

private static Transformer getTransformer() throws TransformerConfigurationException 

Method Source Code

//package com.java2s;

import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;

import javax.xml.transform.TransformerFactory;

public class Main {
    private static TransformerFactory transformerFactory = null;

    private static Transformer getTransformer() throws TransformerConfigurationException {
        return getTransformerFactory().newTransformer();
    }//from  w ww.j a  v  a  2  s  .  c  o m

    private static synchronized TransformerFactory getTransformerFactory() {
        if (transformerFactory == null)
            transformerFactory = TransformerFactory.newInstance();
        return transformerFactory;
    }
}

Related

  1. getThreadedTransformer(final boolean omitXmlDeclaration, final boolean standalone, final Map threadMap, final String xslURL)
  2. getTransformedText(File doc, File xsl, Object[] params)
  3. getTransformer()
  4. getTransformer()
  5. getTransformer()
  6. getTransformer()
  7. getTransformer()
  8. getTransformer()
  9. getTransformer(boolean omitXmlDeclaration, String xslURL)