Code example for TransformerHandler

Methods: setResult

0
        } 
 
        public final ContentHandler createContentHandler() {
            try { 
                TransformerHandler handler = saxtf.newTransformerHandler(templates);
                handler.setResult(new SAXResult(outputHandler));
                return handler;
            } catch (TransformerConfigurationException ex) {
                throw new RuntimeException(ex.toString());
            } 
        } 
    } 
 
    /** 
     * SubdocumentHandlerFactory 
     */ 
    private final static class SubdocumentHandlerFactory implements 
            ContentHandlerFactory 
    { 
        private ContentHandler subdocumentHandler;