@Test public void testXMLParse() { String xml = XML.stringify(new Person("abc", 123)); System.out.println(xml); Person p = Parse.data(xml, Person.class); eq(p.getName(), "abc"); eq(p.getAge(), 123); }
public static <T> T data(String data, Class<T> targetType) { return data(data.getBytes(), targetType); }
Parse extends RapidoidThing { public static <T> T data(String data, Class<T> targetType) { return data(data.getBytes(), targetType); } }
Parse extends RapidoidThing { public static <T> T data(String data, Class<T> targetType) { return data(data.getBytes(), targetType); }  }
Parse extends RapidoidThing { public static <T> T data(String data, Class<T> targetType) { return data(data.getBytes(), targetType); }  static T data(String data, Class<T> targetType); @SuppressWarnings("unchecked") static T data(byte[] data, Class<T> targetType); }
Parse extends RapidoidThing { public static <T> T data(String data, Class<T> targetType) { return data(data.getBytes(), targetType); }  static T data(String data, Class<T> targetType); @SuppressWarnings("unchecked") static T data(byte[] data, Class<T> targetType);  }