类 TransformerUtils
java.lang.Object
cn.taketoday.util.xml.TransformerUtils
Contains common behavior relating to
Transformers
and the javax.xml.transform package in general.- 从以下版本开始:
- 4.0
- 作者:
- Rick Evans, Juergen Hoeller
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voiddisableIndenting(Transformer transformer) Disable indenting for the suppliedTransformer.static voidenableIndenting(Transformer transformer) Enable indenting for the suppliedTransformer.static voidenableIndenting(Transformer transformer, int indentAmount) Enable indenting for the suppliedTransformer.
-
字段详细资料
-
DEFAULT_INDENT_AMOUNT
public static final int DEFAULT_INDENT_AMOUNTThe indent amount of characters ifindenting is enabled.Defaults to "2".
- 另请参阅:
-
-
构造器详细资料
-
TransformerUtils
public TransformerUtils()
-
-
方法详细资料
-
enableIndenting
Enable indenting for the suppliedTransformer.If the underlying XSLT engine is Xalan, then the special output key
indent-amountwill be also be set to a value ofDEFAULT_INDENT_AMOUNTcharacters.- 参数:
transformer- the target transformer- 另请参阅:
-
enableIndenting
Enable indenting for the suppliedTransformer.If the underlying XSLT engine is Xalan, then the special output key
indent-amountwill be also be set to a value ofDEFAULT_INDENT_AMOUNTcharacters.- 参数:
transformer- the target transformerindentAmount- the size of the indent (2 characters, 3 characters, etc)- 另请参阅:
-
disableIndenting
Disable indenting for the suppliedTransformer.- 参数:
transformer- the target transformer- 另请参阅:
-