public Object unmarshal(InputStream inputStream) { if (xmlUnmarshaller.getXMLContext().hasDocumentPreservation()) { Node domElement = xmlParser.parse(inputStream).getDocumentElement(); return unmarshal(domElement); } InputSource inputSource = new InputSource(inputStream); return unmarshal(inputSource); }
public Object unmarshal(Reader reader, Class clazz) { if (xmlUnmarshaller.getXMLContext().hasDocumentPreservation()) { Node domElement = xmlParser.parse(reader).getDocumentElement(); return unmarshal(domElement, clazz); } InputSource inputSource = new InputSource(reader); return unmarshal(inputSource, clazz); }
@Override public Object unmarshal(InputStream inputStream) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(inputStream).getDocumentElement(); return unmarshal(domElement); } InputSource inputSource = new InputSource(inputStream); return unmarshal(inputSource); }
@Override public Object unmarshal(Reader reader) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(reader).getDocumentElement(); return unmarshal(domElement); } InputSource inputSource = new InputSource(reader); return unmarshal(inputSource); }
public Object unmarshal(InputStream inputStream, Class clazz) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(inputStream).getDocumentElement(); return unmarshal(domElement, clazz); } InputSource inputSource = new InputSource(inputStream); return unmarshal(inputSource, clazz); }
public Object unmarshal(Reader reader) { try { Document document = null; document = parser.parse(reader); return xmlToObject(new DOMRecord(document)); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
public Object unmarshal(Source source, Class clazz) { try { Document document = null; document = parser.parse(source); return xmlToObject(new DOMRecord(document), clazz); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
/** * Set the XML from an XML reader. */ public void transformFromXML(Reader reader) { XMLParser parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); Document document = parser.parse(reader); setDOM(document.getDocumentElement()); }
public Object unmarshal(InputStream inputStream) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(inputStream).getDocumentElement(); return unmarshal(domElement); } InputSource inputSource = new InputSource(inputStream); return unmarshal(inputSource); }
public Object unmarshal(InputSource inputSource, Class clazz) { try { Document document = null; document = parser.parse(inputSource); return xmlToObject(new DOMRecord(document), clazz); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
/** * Set the XML from an XML reader. */ public void transformFromXML(Reader reader) { XMLParser parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(); Document document = parser.parse(reader); setDOM(document.getDocumentElement()); }
@Override public Object unmarshal(InputStream inputStream, Class clazz) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(inputStream).getDocumentElement(); return unmarshal(domElement, clazz); } InputSource inputSource = new InputSource(inputStream); return unmarshal(inputSource, clazz); }
@Override public Object unmarshal(Reader reader, Class clazz) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(reader).getDocumentElement(); return unmarshal(domElement, clazz); } InputSource inputSource = new InputSource(reader); return unmarshal(inputSource, clazz); }
public Object unmarshal(Reader reader) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(reader).getDocumentElement(); return unmarshal(domElement); } InputSource inputSource = new InputSource(reader); return unmarshal(inputSource); }
public Object unmarshal(File file, Class clazz) { try { if (xmlUnmarshaller.getXMLContext().hasDocumentPreservation()) { Node domElement = xmlParser.parse(file).getDocumentElement(); return unmarshal(domElement, clazz); } FileInputStream inputStream = new FileInputStream(file); return unmarshal(inputStream, clazz); } catch (FileNotFoundException e) { throw XMLMarshalException.unmarshalException(e); } }
public Object unmarshal(Reader reader, Class clazz) { try { Document document = null; document = parser.parse(reader); return xmlToObject(new DOMRecord(document), clazz); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
public Object unmarshal(URL url) { try { Document document = null; document = parser.parse(url); return xmlToObject(new DOMRecord(document)); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
public Object unmarshal(URL url, Class clazz) { try { Document document = null; document = parser.parse(url); return xmlToObject(new DOMRecord(document), clazz); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
public Object unmarshal(Source source) { try { Document document = null; document = parser.parse(source); return xmlToObject(new DOMRecord(document)); } catch (XMLPlatformException e) { throw XMLMarshalException.unmarshalException(e); } }
public Object unmarshal(Reader reader, Class clazz) { if (xmlUnmarshaller.getContext().hasDocumentPreservation()) { Node domElement = getXMLParser().parse(reader).getDocumentElement(); return unmarshal(domElement, clazz); } InputSource inputSource = new InputSource(reader); return unmarshal(inputSource, clazz); }