@Singleton public class JAXBParser extends Object implements XMLParser
ParseXMLWithJAXB
DEFAULT_XML_HEADER
Constructor and Description |
---|
JAXBParser(String prettyPrint) |
@Inject public JAXBParser(String prettyPrint)
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-2013 jclouds. All Rights Reserved.