@Test public void testToXml() throws Exception { ByteArrayOutputStream out = new ByteArrayOutputStream(); xml(new Hello("world")).writeTo(out); String s = new String(out.toByteArray()); assertThat(s, equalTo("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><hello><name>world</name></hello>")); }
public static <T> BodyReader<T> xml(Class<T> type) { return INSTANCE.reader(type); }
JaxbMapper { public static <T> BodyReader<T> xml(Class<T> type) { return INSTANCE.reader(type); } }
JaxbMapper { public static <T> BodyReader<T> xml(Class<T> type) { return INSTANCE.reader(type); } JaxbMapper(boolean formatted); }
JaxbMapper { public static <T> BodyReader<T> xml(Class<T> type) { return INSTANCE.reader(type); } JaxbMapper(boolean formatted); static BodyReader<T> xml(Class<T> type); static BodyWriter xml(Object value); BodyReader<T> reader(Class<T> type); BodyWriter writer(Object value); }
JaxbMapper { public static <T> BodyReader<T> xml(Class<T> type) { return INSTANCE.reader(type); } JaxbMapper(boolean formatted); static BodyReader<T> xml(Class<T> type); static BodyWriter xml(Object value); BodyReader<T> reader(Class<T> type); BodyWriter writer(Object value);  }