Java 类org.springframework.util.xml.TransformerUtils 实例源码

项目:spring4-understanding    文件:XsltView.java   
/**
 * Configure the indentation settings for the supplied {@link Transformer}.
 * @param transformer the target transformer
 * @see org.springframework.util.xml.TransformerUtils#enableIndenting(javax.xml.transform.Transformer)
 * @see org.springframework.util.xml.TransformerUtils#disableIndenting(javax.xml.transform.Transformer)
 */
protected final void configureIndentation(Transformer transformer) {
    if (this.indent) {
        TransformerUtils.enableIndenting(transformer);
    }
    else {
        TransformerUtils.disableIndenting(transformer);
    }
}
项目:class-guard    文件:XsltView.java   
/**
 * Configure the indentation settings for the supplied {@link Transformer}.
 * @param transformer the target transformer
 * @see org.springframework.util.xml.TransformerUtils#enableIndenting(javax.xml.transform.Transformer)
 * @see org.springframework.util.xml.TransformerUtils#disableIndenting(javax.xml.transform.Transformer)
 */
protected final void configureIndentation(Transformer transformer) {
    if (this.indent) {
        TransformerUtils.enableIndenting(transformer);
    }
    else {
        TransformerUtils.disableIndenting(transformer);
    }
}