本文整理汇总了Java中org.apache.commons.lang3.StringEscapeUtils.unescapeXml方法的典型用法代码示例。如果您正苦于以下问题:Java StringEscapeUtils.unescapeXml方法的具体用法?Java StringEscapeUtils.unescapeXml怎么用?Java StringEscapeUtils.unescapeXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.lang3.StringEscapeUtils
的用法示例。
在下文中一共展示了StringEscapeUtils.unescapeXml方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unescapeXml
import org.apache.commons.lang3.StringEscapeUtils; //导入方法依赖的package包/类
/**
* Xml 解码.
*/
public static String unescapeXml(String xmlEscaped) {
return StringEscapeUtils.unescapeXml(xmlEscaped);
}
示例2: sampleFilterWithSingleFields
import org.apache.commons.lang3.StringEscapeUtils; //导入方法依赖的package包/类
public static Filter sampleFilterWithSingleFields() {
final String id = "bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/01113204-c7d1-4d35-ac3f-dda0eed7fbdd";
final String type = "Batcher";
final String state = "stConfigured";
final int priority = -1;
final List<Property> configuration = Arrays.asList(PropertyTest.sampleProperty());
final List<Property> generalProperties = Arrays.asList(PropertyTest.sampleProperty());
final List<Destination> destinations = Arrays.asList(DestinationTest.sampleDestination());
final String errorOutputId = "bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/714fbd75-b53f-452e-ba6d-ea4cd940f295";
final String noMatchOutputId = "bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/a92248b4-9425-49bf-b24c-09d6ad30134e";
final String nextDestinations = "<NextDestinations><Connector><DestinationId>bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/098c3c8e-fc00-4e76-97c8-5804aabc27da</DestinationId></Connector><ErrorConnector>bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/714fbd75-b53f-452e-ba6d-ea4cd940f295</ErrorConnector></NextDestinations>";
final String unescapedNextDestinations = StringEscapeUtils.unescapeXml(nextDestinations);
return filter(id, type, state, priority, configuration, generalProperties, destinations, errorOutputId, noMatchOutputId, unescapedNextDestinations);
}
示例3: unescapeXml
import org.apache.commons.lang3.StringEscapeUtils; //导入方法依赖的package包/类
/**
* Xml 解码.
*/
public static String unescapeXml(String xmlEscaped) {
return StringEscapeUtils.unescapeXml(xmlEscaped);
}
示例4: unescapeXml
import org.apache.commons.lang3.StringEscapeUtils; //导入方法依赖的package包/类
public static String unescapeXml(String text) {
return StringEscapeUtils.unescapeXml(text);
}
示例5: unescapeXml
import org.apache.commons.lang3.StringEscapeUtils; //导入方法依赖的package包/类
/**
* Xml转码,XML格式的字符串解码为普通字符串.
*
* 比如 "bread" & "butter" 转化为"bread" & "butter"
*/
public static String unescapeXml(String xml) {
return StringEscapeUtils.unescapeXml(xml);
}