Java XML Transform getTransformerFactory()

Here you can find the source of getTransformerFactory()

Description

get Transformer Factory

License

Open Source License

Declaration

public static synchronized TransformerFactory getTransformerFactory() 

Method Source Code

//package com.java2s;

import javax.xml.transform.TransformerFactory;

public class Main {
    private static TransformerFactory TRANSFORMER_FACTORY;

    public static synchronized TransformerFactory getTransformerFactory() {
        if (TRANSFORMER_FACTORY == null) {
            TRANSFORMER_FACTORY = TransformerFactory.newInstance();
        }/*  w  w w  .  j  a  v a 2 s.c  o m*/
        return TRANSFORMER_FACTORY;
    }
}

Related

  1. getTransformer(boolean omitXmlDeclaration, String xslURL)
  2. getTransformer(boolean standalone, boolean indent, int indentNumber, boolean omitXmlDeclaration)
  3. getTransformer(final InputStream xsl)
  4. getTransformer(Source xsltSource)
  5. getTransformer(StreamSource streamSource)
  6. getTransformerFactory()
  7. getTransformerFactory()
  8. getTransformerFactory()
  9. getTransformerFactory()