Java XML JAXB Unmarshaller unmarshal(Class clazz, String xml)

Here you can find the source of unmarshal(Class clazz, String xml)

Description

unmarshal

License

Open Source License

Declaration

public static <T> T unmarshal(Class<T> clazz, String xml) 

Method Source Code


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

import java.io.StringReader;

import javax.xml.bind.JAXB;

public class Main {
    public static <T> T unmarshal(Class<T> clazz, String xml) {
        T t = JAXB.unmarshal(new StringReader(xml), clazz);
        return t;
    }// w w  w  .  j av a 2 s.  c  o m
}

Related

  1. getUnmarshaller(Class jaxbClass)
  2. marshallUnmarshall(T inObj)
  3. unmarshal(Class beanClass, InputStream is)
  4. unmarshal(Class c, Object o)
  5. unmarshal(Class clazz, Source source)
  6. unmarshal(Class clazz, String xmlInClassPath)
  7. unmarshal(Class clz, File file)
  8. unmarshal(File f)
  9. unmarshal(final Class clazz, String json)