| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.commsen.jwebthumb.simplexml.SimpleXmlSerializer
public class SimpleXmlSerializer
Utility class responsible for converting objects to XML and XMLs to Objects. The class relies on Simple XML serialization project
| Constructor Summary | |
|---|---|
SimpleXmlSerializer()
 | 
|
| Method Summary | ||
|---|---|---|
static java.lang.String | 
generateRequest(java.lang.Object object)
Converts property annotated object to XML  | 
|
static void | 
generateRequest(java.lang.Object object,
                java.io.OutputStream outputStream)
Converts property annotated object to XML and writes it to given stream  | 
|
static
 | 
parseResponse(java.io.InputStream inputStream,
              java.lang.Class<T> clazz)
Converts XML stream to appropriate object based on objects' annotations  | 
|
static
 | 
parseResponse(java.lang.String xml,
              java.lang.Class<T> clazz)
Converts XML to appropriate object based on objects' annotations  | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SimpleXmlSerializer()
| Method Detail | 
|---|
public static java.lang.String generateRequest(java.lang.Object object)
object - property annotated object
public static void generateRequest(java.lang.Object object,
                                   java.io.OutputStream outputStream)
object - property annotated objectoutputStream - the stream to write the XML to
public static <T> T parseResponse(java.lang.String xml,
                                  java.lang.Class<T> clazz)
T - xml - string containing the XML to be converted to objectclazz - the type of the return object
public static <T> T parseResponse(java.io.InputStream inputStream,
                                  java.lang.Class<T> clazz)
T - inputStream - the stream to read the XML fromclazz - the type of the return object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||