Java XML JAXB Marshaller createMarshaller(JAXBContext context)

Here you can find the source of createMarshaller(JAXBContext context)

Description

create Marshaller

License

Apache License

Declaration

public static Marshaller createMarshaller(JAXBContext context) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.*;

public class Main {
    public static Marshaller createMarshaller(JAXBContext context) {
        try {//from  ww w .  j  av a  2s . c o  m
            return context.createMarshaller();
        } catch (JAXBException e) {
            throw new IllegalStateException(e);
        }
    }
}

Related

  1. createJAXBMarshaller(JAXBContext jaxbContext)
  2. createMarshall(String pkgName)
  3. createMarshaller()
  4. createMarshaller(Class clazz, Map settings)
  5. createMarshaller(Class clazz)
  6. createMarshaller(JAXBContext ctx, boolean indent)
  7. createMarshaller(Object object)
  8. createMarshaller(String pack)
  9. getJSIDLMarshaller()