@Singleton public class JAXBParser extends Object implements XMLParser
ParseXMLWithJAXB
DEFAULT_XML_HEADER
Constructor and Description |
---|
JAXBParser() |
public String toXML(Object src) throws IOException
XMLParser
toXML
in interface XMLParser
IOException
public <T> String toXML(Object src, Class<T> type) throws IOException
XMLParser
toXML
in interface XMLParser
IOException
public <T> T fromXML(String xml, Class<T> type) throws IOException
XMLParser
fromXML
in interface XMLParser
IOException
Copyright © 2009-2012 jclouds. All Rights Reserved.