Remove unused conversion to JSON
This commit is contained in:
parent
9bc66b943a
commit
77c8c65f0d
@ -21,18 +21,7 @@ public class OrderConverter {
|
||||
smooks.close();
|
||||
}
|
||||
}
|
||||
|
||||
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 {
|
||||
return convertDocumentWithTempalte(path, "/smooks/smooks-transform-edi.xml");
|
||||
|
Loading…
x
Reference in New Issue
Block a user