public XMLInputStAX(InputStream in, Model model) { XMLInputFactory xf = XMLInputFactory.newInstance() ; try { XMLStreamReader xReader = xf.createXMLStreamReader(in) ; worker(xReader, model) ; } catch (XMLStreamException e) { throw new ResultSetException("Can't initialize StAX parsing engine", e) ; } catch (Exception ex) { throw new ResultSetException("Failed when initializing the StAX parsing engine", ex) ; } }
public XMLInputStAX(String str, Model model) { XMLInputFactory xf = XMLInputFactory.newInstance() ; try { Reader r = new StringReader(str) ; XMLStreamReader xReader = xf.createXMLStreamReader(r) ; worker(xReader, model) ; } catch (XMLStreamException e) { throw new ResultSetException("Can't initialize StAX parsing engine", e) ; } catch (Exception ex) { throw new ResultSetException("Failed when initializing the StAX parsing engine", ex) ; } }
public XMLInputStAX(String str, Model model) { XMLInputFactory xf = XMLInputFactory.newInstance() ; try { Reader r = new StringReader(str) ; XMLStreamReader xReader = xf.createXMLStreamReader(r) ; worker(xReader, model) ; } catch (XMLStreamException e) { throw new ResultSetException("Can't initialize StAX parsing engine", e) ; } catch (Exception ex) { throw new ResultSetException("Failed when initializing the StAX parsing engine", ex) ; } }
public XMLInputStAX(InputStream in, Model model) { XMLInputFactory xf = XMLInputFactory.newInstance() ; try { XMLStreamReader xReader = xf.createXMLStreamReader(in) ; worker(xReader, model) ; } catch (XMLStreamException e) { throw new ResultSetException("Can't initialize StAX parsing engine", e) ; } catch (Exception ex) { throw new ResultSetException("Failed when initializing the StAX parsing engine", ex) ; } }