package com.brightgenerous.xml;
import java.io.Reader;
import java.io.Writer;
import com.brightgenerous.xml.deleagate.XmlUtility;
@SuppressWarnings("deprecation")
public class XmlUtils {
public static boolean useful() {
return XmlUtility.USEFUL;
}
private XmlUtils() {
}
public static <T> T unmarshal(String xml, Class<T> clazz) throws XmlException {
return XmlUtility.unmarshal(xml, clazz);
}
public static <T> T unmarshal(Reader xml, Class<T> clazz) throws XmlException {
return XmlUtility.unmarshal(xml, clazz);
}
public static String marshal(Object obj) throws XmlException {
return XmlUtility.marshal(obj);
}
public static void marshal(Object obj, Writer out) throws XmlException {
XmlUtility.marshal(obj, out);
}
}