org.apache.shindig.protocol.conversion
Class BeanXmlConverter
java.lang.Object
org.apache.shindig.protocol.conversion.BeanXmlConverter
- All Implemented Interfaces:
- BeanConverter
public class BeanXmlConverter
- extends Object
- implements BeanConverter
Converts to/from XML format using betwixt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanXmlConverter
public BeanXmlConverter()
getContentType
public String getContentType()
- Specified by:
getContentType in interface BeanConverter
- Returns:
- the content type of the converted data
convertToString
public String convertToString(Object pojo)
- Specified by:
convertToString in interface BeanConverter
convertToXml
public String convertToXml(Object obj)
convertToObject
public <T> T convertToObject(String xml,
Class<T> className)
- Specified by:
convertToObject in interface BeanConverter
append
public void append(Appendable buf,
Object pojo)
throws IOException
- Description copied from interface:
BeanConverter
- Serialize object to a buffer. Useful for high performance output.
- Specified by:
append in interface BeanConverter
- Parameters:
buf - Buffer to append topojo - Object to serialize
- Throws:
IOException - If Appendable.append(char) throws an exception.
Copyright © 2007-2012. All Rights Reserved.