Here you can find the source of createUnmarshaller(Class jaxbBindClass)
@SuppressWarnings("rawtypes") private static Unmarshaller createUnmarshaller(Class jaxbBindClass) throws JAXBException
//package com.java2s; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; public class Main { @SuppressWarnings("rawtypes") private static Unmarshaller createUnmarshaller(Class jaxbBindClass) throws JAXBException { Unmarshaller unmarshaller = newJAXBContext(jaxbBindClass).createUnmarshaller(); return unmarshaller; }// w w w . j a va2s .c o m @SuppressWarnings("rawtypes") private static JAXBContext newJAXBContext(Class jaxbBindClass) throws JAXBException { return JAXBContext.newInstance(jaxbBindClass); } }