Code example for TransformerFactory

Methods: getClassnewTransformer

0
    private static final ILogger LOG = LoggerFactory.getLogger( XSLTDocument.class );
 
    private static final TransformerFactory factory = TransformerFactory.newInstance();
 
    static { 
        LOG.logDebug( "XSLT implementation in use (TransformerFactory): " + factory.getClass().getName() );
        try { 
            LOG.logDebug( "XSLT implementation in use (Transformer): " + factory.newTransformer().getClass().getName() );
        } catch ( Exception e ) {
            BootLogger.logError( "Error creating test Transformer instance.", e );
        } 
    } 
 
    /** 
     * An empty xslt document. 
     */ 
    public XSLTDocument() { 
        super(); 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE