org.objectweb.perseus.distribution.lib
Class BasicSerializer

java.lang.Object
  extended byorg.objectweb.perseus.distribution.lib.BasicSerializer
All Implemented Interfaces:
DistResSerializer

public class BasicSerializer
extends java.lang.Object
implements DistResSerializer

Basic serializer using the Serializable interface of serializable objects


Constructor Summary
BasicSerializer()
           
 
Method Summary
 java.lang.Object deserialize(java.io.Serializable serializedResId)
          Deserialize a resource identifier.
 java.io.Serializable serialize(java.lang.Object resId)
          Serialize a resource identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSerializer

public BasicSerializer()
Method Detail

deserialize

public java.lang.Object deserialize(java.io.Serializable serializedResId)
Description copied from interface: DistResSerializer
Deserialize a resource identifier.

Specified by:
deserialize in interface DistResSerializer
Parameters:
serializedResId - the serialized form of the identifier
Returns:
the natural form (of the right class) of the identifier

serialize

public java.io.Serializable serialize(java.lang.Object resId)
Description copied from interface: DistResSerializer
Serialize a resource identifier. Note that it is possible to confine the serialization in the serializer by returning an byte array.

Specified by:
serialize in interface DistResSerializer
Parameters:
resId - the unserialized form of the identifier
Returns:
the serialized form of the identifier


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.