Class MarshallerProperties


  • public class MarshallerProperties
    extends Object
    These are properties that may be set on an instance of Marshaller. Below is an example of using the property mechanism to enable MOXy's JSON binding for an instance of Marshaller.
     Marshaller marshaller = jaxbContext.createMarshaller();
     marshaller.setProperty(MarshallerProperties.MEDIA_TYPE, "application/json");