@Override public Object unmarshal(XMLStreamReader reader) throws JAXBException { return unmarshal0(reader,null); }
@Override public Object unmarshal(XMLEventReader reader) throws JAXBException { return unmarshal0(reader,null); }
protected Object unmarshal( XMLReader reader, InputSource source ) throws JAXBException { return unmarshal0(reader,source,null); }
public final Object unmarshal( Node node ) throws JAXBException { return unmarshal0(node,null); }
@Override public <T> JAXBElement<T> unmarshal(Node node, Class<T> expectedType) throws JAXBException { if (expectedType == null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(node,getBeanInfo(expectedType)); }
@Override public <T> JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> expectedType) throws JAXBException { if(expectedType==null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(reader,getBeanInfo(expectedType)); }
@Override public <T> JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> expectedType) throws JAXBException { if (expectedType==null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(reader,getBeanInfo(expectedType)); }
protected <T> JAXBElement<T> unmarshal( XMLReader reader, InputSource source, Class<T> expectedType ) throws JAXBException { if(expectedType==null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(reader,source,getBeanInfo(expectedType)); }
public @NotNull T unmarshal(Unmarshaller _u, XMLStreamReader in) throws JAXBException { UnmarshallerImpl u = (UnmarshallerImpl)_u; return ((JAXBElement<T>)u.unmarshal0(in,bi)).getValue(); }
public @NotNull T unmarshal(Unmarshaller _u, Source in) throws JAXBException { UnmarshallerImpl u = (UnmarshallerImpl)_u; return ((JAXBElement<T>)u.unmarshal0(in,bi)).getValue(); }
public @NotNull T unmarshal(Unmarshaller _u, InputStream in) throws JAXBException { UnmarshallerImpl u = (UnmarshallerImpl)_u; return ((JAXBElement<T>)u.unmarshal0(in,bi)).getValue(); }
public @NotNull T unmarshal(Unmarshaller _u, Node n) throws JAXBException { UnmarshallerImpl u = (UnmarshallerImpl)_u; return ((JAXBElement<T>)u.unmarshal0(n,bi)).getValue(); }
public Object unmarshal0( InputStream input, JaxBeanInfo expectedType ) throws JAXBException { return unmarshal0(getXMLReader(),new InputSource(input),expectedType); }
public Object unmarshal0( Source source, JaxBeanInfo expectedType ) throws JAXBException { if (source instanceof SAXSource) { SAXSource ss = (SAXSource) source; XMLReader locReader = ss.getXMLReader(); if (locReader == null) { locReader = getXMLReader(); } return unmarshal0(locReader, ss.getInputSource(), expectedType); } if (source instanceof StreamSource) { return unmarshal0(getXMLReader(), streamSourceToInputSource((StreamSource) source), expectedType); } if (source instanceof DOMSource) { return unmarshal0(((DOMSource) source).getNode(), expectedType); } // we don't handle other types of Source throw new IllegalArgumentException(); }
@Override public Object unmarshal(XMLStreamReader reader) throws JAXBException { return unmarshal0(reader,null); }
@Override public Object unmarshal(XMLEventReader reader) throws JAXBException { return unmarshal0(reader,null); }
protected <T> JAXBElement<T> unmarshal( XMLReader reader, InputSource source, Class<T> expectedType ) throws JAXBException { if(expectedType==null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(reader,source,getBeanInfo(expectedType)); }
@Override public <T> JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> expectedType) throws JAXBException { if (expectedType==null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(reader,getBeanInfo(expectedType)); }
@Override public <T> JAXBElement<T> unmarshal(Node node, Class<T> expectedType) throws JAXBException { if (expectedType == null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(node,getBeanInfo(expectedType)); }
@Override public <T> JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> expectedType) throws JAXBException { if(expectedType==null) { throw new IllegalArgumentException(); } return (JAXBElement)unmarshal0(reader,getBeanInfo(expectedType)); }