protected static DOMWrapper makeDOMWrapper(final InputStream inStream) { try { final Parser xmlParser = XOMUtil.createDefaultParser(); DOMWrapper def = xmlParser.parse(inStream); return def; } catch (XOMException e) { throw mres.AggRuleParse.ex("InputStream", e); } }
protected static DOMWrapper makeDOMWrapper(final String text, final String name) { try { final Parser xmlParser = XOMUtil.createDefaultParser(); DOMWrapper def = xmlParser.parse(text); return def; } catch (XOMException e) { throw mres.AggRuleParse.ex(name, e); } }
protected static DOMWrapper makeDOMWrapper(final URL url) { try { final Parser xmlParser = XOMUtil.createDefaultParser(); DOMWrapper def = xmlParser.parse(url); return def; } catch (XOMException e) { throw mres.AggRuleParse.ex(url.toString(), e); } }