Commit 0889c5e3 by chengzhuoshen

增加mx2Element,参数是file的方法接口

parent 1535e731
......@@ -217,4 +217,13 @@ public class SwiftTransfer {
public static String mx2Element(String xmlStr) {
return new Mx2ElementCreatorManager().mx2Element(xmlStr);
}
public static String mx2Element(File file) {
try {
String xmlStr = FileUtils.readFileToString(file);
return mx2Element(xmlStr);
} catch (IOException e) {
throw new SwiftException(e.getMessage());
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment