Java XML JAXB Unmarshaller getUnmarshaller(Class jaxbClass)

Here you can find the source of getUnmarshaller(Class jaxbClass)

Description

get Unmarshaller

License

Open Source License

Declaration

public static Unmarshaller getUnmarshaller(Class jaxbClass) throws JAXBException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;

import javax.xml.bind.Unmarshaller;

public class Main {
    public static Unmarshaller getUnmarshaller(Class jaxbClass) throws JAXBException {
        JAXBContext jaxbContext = JAXBContext.newInstance(jaxbClass);
        return jaxbContext.createUnmarshaller();
    }//from  w  ww  .j  a va  2  s.com
}

Related

  1. createUnmarshaller(Class clazz)
  2. createUnmarshaller(Object object)
  3. getUnmarshaller()
  4. getUnmarshaller()
  5. getUnmarshaller()
  6. marshallUnmarshall(T inObj)
  7. unmarshal(Class beanClass, InputStream is)
  8. unmarshal(Class c, Object o)
  9. unmarshal(Class clazz, Source source)