Java XML JAXB Unmarshaller createUnmarshaller(Class clazz)

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

Description

create Unmarshaller

License

Open Source License

Declaration

public static Unmarshaller createUnmarshaller(Class<?> clazz) 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 {
    public static Unmarshaller createUnmarshaller(Class<?> clazz) throws JAXBException {
        JAXBContext context = JAXBContext.newInstance(clazz);

        Unmarshaller unmarshaller = context.createUnmarshaller();

        return unmarshaller;
    }//from   w  w  w.j  a  va  2s . com
}

Related

  1. createUnmarshaller()
  2. createUnmarshaller()
  3. createUnmarshaller()
  4. createUnmarshaller(Class jaxbBindClass)
  5. createUnmarshaller(Class clazz)
  6. createUnmarshaller(Class clazz)
  7. createUnmarshaller(Object object)
  8. getUnmarshaller()
  9. getUnmarshaller()