@Singleton public class FGCPJAXBParser extends Object implements XMLParser
ParseXMLWithJAXB
DEFAULT_XML_HEADER
Constructor and Description |
---|
FGCPJAXBParser() |
public FGCPJAXBParser() throws JAXBException
JAXBException
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.