本文整理匯總了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);
}