org.objectweb.speedo.mapper.lib
Class Object2JMIFileSerializer

java.lang.Object
  extended by org.objectweb.speedo.mapper.lib.Object2JMIFileSerializer

public class Object2JMIFileSerializer
extends java.lang.Object

This class contains primitive to serialize and deserialize an Object into a .jmi file.

Author:
S.Chassande-Barrioz

Field Summary
static char[] ext
           
 
Constructor Summary
Object2JMIFileSerializer()
           
 
Method Summary
static java.lang.String descFileName2FileName(java.lang.String descFileName)
           
static java.lang.Object deserialize(java.lang.String descFileName, java.lang.ClassLoader cl, org.objectweb.util.monolog.api.Logger logger)
           
static java.lang.String serialize(java.lang.String output, java.lang.String descFileName, java.lang.Object o, org.objectweb.util.monolog.api.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ext

public static final char[] ext
Constructor Detail

Object2JMIFileSerializer

public Object2JMIFileSerializer()
Method Detail

serialize

public static java.lang.String serialize(java.lang.String output,
                                         java.lang.String descFileName,
                                         java.lang.Object o,
                                         org.objectweb.util.monolog.api.Logger logger)
                                  throws java.io.IOException
Throws:
java.io.IOException

deserialize

public static java.lang.Object deserialize(java.lang.String descFileName,
                                           java.lang.ClassLoader cl,
                                           org.objectweb.util.monolog.api.Logger logger)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

descFileName2FileName

public static java.lang.String descFileName2FileName(java.lang.String descFileName)