org.codehaus.waffle.io
Interface Serializer

All Known Implementing Classes:
XStreamSerializer

public interface Serializer

Serializer is responsible for marshalling and unmarshalling objects.

Author:
Mauro Talevi

Method Summary
 void marshall(java.lang.Object object, java.io.Writer writer)
          Marshalls object to a writer
 java.lang.Object unmarshall(java.io.Reader reader)
          Unmarshalls object from reader input
 

Method Detail

marshall

void marshall(java.lang.Object object,
              java.io.Writer writer)
Marshalls object to a writer

Parameters:
object - the Object to marshall
writer - the writer to which the object is marshalled

unmarshall

java.lang.Object unmarshall(java.io.Reader reader)
Unmarshalls object from reader input

Parameters:
reader - the input resource
Returns:
An unmarshalled Object


Copyright © 2008. All Rights Reserved.