Java XML JAXB Unmarshaller createUnmarshaller(Class jaxbBindClass)

Here you can find the source of createUnmarshaller(Class jaxbBindClass)

Description

create Unmarshaller

License

Open Source License

Declaration

@SuppressWarnings("rawtypes")
    private static Unmarshaller createUnmarshaller(Class jaxbBindClass) throws JAXBException 

Method Source Code

//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);
    }
}

Related

  1. castUnmarshalled(Object unmarshalled, Class clazz)
  2. closeUnmarshaller(Unmarshaller u)
  3. createUnmarshaller()
  4. createUnmarshaller()
  5. createUnmarshaller()
  6. createUnmarshaller(Class clazz)
  7. createUnmarshaller(Class clazz)
  8. createUnmarshaller(Class clazz)
  9. createUnmarshaller(Object object)