org.apache.shindig.protocol.conversion
Interface BeanConverter
- All Known Implementing Classes:
- BeanAtomConverter, BeanJsonConverter, BeanXmlConverter, BeanXStreamConverter
public interface BeanConverter
Interface for bean conversion classes
convertToObject
<T> T convertToObject(String string,
Class<T> className)
convertToString
String convertToString(Object pojo)
getContentType
String getContentType()
- Returns:
- the content type of the converted data
append
void append(Appendable buf,
Object pojo)
throws IOException
- Serialize object to a buffer. Useful for high performance output.
- Parameters:
buf - Buffer to append topojo - Object to serialize
- Throws:
IOException - If Appendable.append(char) throws an exception.
Copyright © 2007-2012. All Rights Reserved.