Remove unused conversion to JSON
This commit is contained in:
parent
9bc66b943a
commit
77c8c65f0d
@ -22,17 +22,6 @@ public class OrderConverter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order convertOrderJSONToOrderObject(String path) throws IOException, SAXException {
|
|
||||||
Smooks smooks = new Smooks(OrderConverter.class.getResourceAsStream("/smooks/smooks-mapping-json.xml"));
|
|
||||||
try {
|
|
||||||
JavaResult javaResult = new JavaResult();
|
|
||||||
smooks.filterSource(new StreamSource(OrderConverter.class.getResourceAsStream(path)), javaResult);
|
|
||||||
return (Order) javaResult.getBean("order");
|
|
||||||
} finally {
|
|
||||||
smooks.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public String convertOrderXMLtoEDIFACT(String path) throws IOException, SAXException {
|
public String convertOrderXMLtoEDIFACT(String path) throws IOException, SAXException {
|
||||||
return convertDocumentWithTempalte(path, "/smooks/smooks-transform-edi.xml");
|
return convertDocumentWithTempalte(path, "/smooks/smooks-transform-edi.xml");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user