@Test public void buildsMarshallerWithJAXBEncodingProperty() throws Exception { JAXBContextFactory factory = new JAXBContextFactory.Builder().withMarshallerJAXBEncoding("UTF-16").build(); Marshaller marshaller = factory.createMarshaller(Object.class); assertEquals("UTF-16", marshaller.getProperty(Marshaller.JAXB_ENCODING)); }
public Marshaller createMarshaller(Class<?> clazz) throws JAXBException { Marshaller marshaller = getContext(clazz).createMarshaller(); setMarshallerProperties(marshaller); return marshaller; }
JAXBContextFactory { public Marshaller createMarshaller(Class<?> clazz) throws JAXBException { Marshaller marshaller = getContext(clazz).createMarshaller(); setMarshallerProperties(marshaller); return marshaller; } }
JAXBContextFactory { public Marshaller createMarshaller(Class<?> clazz) throws JAXBException { Marshaller marshaller = getContext(clazz).createMarshaller(); setMarshallerProperties(marshaller); return marshaller; } private  JAXBContextFactory(Map<String, Object> properties); }
JAXBContextFactory { public Marshaller createMarshaller(Class<?> clazz) throws JAXBException { Marshaller marshaller = getContext(clazz).createMarshaller(); setMarshallerProperties(marshaller); return marshaller; } private  JAXBContextFactory(Map<String, Object> properties); Unmarshaller createUnmarshaller(Class<?> clazz); Marshaller createMarshaller(Class<?> clazz); }
JAXBContextFactory { public Marshaller createMarshaller(Class<?> clazz) throws JAXBException { Marshaller marshaller = getContext(clazz).createMarshaller(); setMarshallerProperties(marshaller); return marshaller; } private  JAXBContextFactory(Map<String, Object> properties); Unmarshaller createUnmarshaller(Class<?> clazz); Marshaller createMarshaller(Class<?> clazz);  }