org.apache.shindig.protocol.conversion
Interface BeanConverter

All Known Implementing Classes:
BeanAtomConverter, BeanJsonConverter, BeanXmlConverter, BeanXStreamConverter

public interface BeanConverter

Interface for bean conversion classes


Method Summary
 void append(Appendable buf, Object pojo)
          Serialize object to a buffer.
<T> T
convertToObject(String string, Class<T> className)
           
 String convertToString(Object pojo)
           
 String getContentType()
           
 

Method Detail

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 to
pojo - Object to serialize
Throws:
IOException - If Appendable.append(char) throws an exception.


Copyright © 2007-2012. All Rights Reserved.