net.sourceforge.jparam.output
Interface ISerializer

All Known Implementing Classes:
SerializeMethodSerializer, OutputMethodSerializer

public interface ISerializer

A serializer that can write an object of a specific class into the given PrintStream using the JParam output format This interface will usually not used directly

Author:
Ron_Sidi

Method Summary
 java.lang.Class getSupportedClass()
          Return the Class that is supported by this seriazlier
 void serialize(java.lang.Object obj, java.io.PrintStream out)
          Write the string representation of the given object into the given PrintStream
 

Method Detail

serialize

public void serialize(java.lang.Object obj,
                      java.io.PrintStream out)
               throws JParamException
Write the string representation of the given object into the given PrintStream
Parameters:
obj - the object to write (must be instanceof getSupportedClass
out - the PrintStream to write to
Throws:
JParamException - if there was any problem with the serialization process, or if the object is not instanceof getSupportedClass

getSupportedClass

public java.lang.Class getSupportedClass()
Return the Class that is supported by this seriazlier
Returns:
 


Copyright © 2004 SourceForge. All Rights Reserved.