public class JAXBUnmarshaller extends Object implements Unmarshaller
Purpose:To Provide an implementation of the JAXB 2.0 Unmarshaller Interface
Responsibilities:
This implementation of the JAXB 2.0 Unmarshaller interface provides the required functionality by acting as a thin wrapper on the existing XMLMarshaller API.
Unmarshaller,
XMLUnmarshallerUnmarshaller.Listener| Modifier and Type | Field and Description |
|---|---|
static String |
STAX_SOURCE_CLASS_NAME |
static String |
XML_JAVATYPE_ADAPTERS |
| Constructor and Description |
|---|
JAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller) |
public static final String XML_JAVATYPE_ADAPTERS
public static final String STAX_SOURCE_CLASS_NAME
public JAXBUnmarshaller(XMLUnmarshaller newXMLUnmarshaller)
public XMLUnmarshaller getXMLUnmarshaller()
public Object unmarshal(File file) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic Object unmarshal(InputStream inputStream) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic Object unmarshal(URL url) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic Object unmarshal(InputSource inputSource) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic Object unmarshal(Reader reader) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic Object unmarshal(Node node) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic JAXBElement unmarshal(Node node, Class javaClass) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic Object unmarshal(Source source) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic JAXBElement unmarshal(Source source, Class javaClass) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic JAXBElement unmarshal(Source source, Type type) throws JAXBException
JAXBExceptionpublic JAXBElement unmarshal(Source source, TypeMappingInfo type) throws JAXBException
JAXBExceptionpublic JAXBElement unmarshal(XMLStreamReader streamReader, Class javaClass) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic JAXBElement unmarshal(XMLStreamReader streamReader, Type type) throws JAXBException
JAXBExceptionpublic JAXBElement unmarshal(XMLStreamReader streamReader, TypeMappingInfo type) throws JAXBException
JAXBExceptionpublic Object unmarshal(XMLStreamReader streamReader) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic JAXBElement unmarshal(XMLEventReader eventReader, Class javaClass) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic JAXBElement unmarshal(XMLEventReader eventReader, Type type) throws JAXBException
JAXBExceptionpublic JAXBElement unmarshal(XMLEventReader eventReader, TypeMappingInfo type) throws JAXBException
JAXBExceptionpublic Object unmarshal(XMLEventReader eventReader) throws JAXBException
unmarshal in interface UnmarshallerJAXBExceptionpublic UnmarshallerHandler getUnmarshallerHandler()
getUnmarshallerHandler in interface Unmarshallerpublic void setValidating(boolean validate)
throws JAXBException
setValidating in interface UnmarshallerJAXBExceptionpublic boolean isValidating()
throws JAXBException
isValidating in interface UnmarshallerJAXBExceptionpublic void setEventHandler(ValidationEventHandler newValidationEventHandler) throws JAXBException
setEventHandler in interface UnmarshallerJAXBExceptionpublic ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler in interface UnmarshallerJAXBExceptionpublic void setProperty(String key, Object value) throws PropertyException
setProperty in interface UnmarshallerPropertyExceptionpublic Object getProperty(String key) throws PropertyException
getProperty in interface UnmarshallerPropertyExceptionpublic Unmarshaller.Listener getListener()
getListener in interface Unmarshallerpublic void setListener(Unmarshaller.Listener listener)
setListener in interface Unmarshallerpublic XmlAdapter getAdapter(Class javaClass)
getAdapter in interface Unmarshallerpublic void setAdapter(Class javaClass, XmlAdapter adapter)
setAdapter in interface Unmarshallerpublic void setAdapter(XmlAdapter adapter)
setAdapter in interface Unmarshallerpublic void setSchema(Schema schema)
setSchema in interface Unmarshallerpublic Schema getSchema()
getSchema in interface Unmarshallerpublic AttachmentUnmarshaller getAttachmentUnmarshaller()
getAttachmentUnmarshaller in interface Unmarshallerpublic void setAttachmentUnmarshaller(AttachmentUnmarshaller unmarshaller)
setAttachmentUnmarshaller in interface Unmarshallerpublic void setUnmarshalCallbacks(HashMap callbacks)
public void setJaxbContext(JAXBContext jaxbContext)