org.granite.client.messaging.jmf.ext
Class ClientEntityCodec

java.lang.Object
  extended by org.granite.client.messaging.jmf.ext.ClientEntityCodec
All Implemented Interfaces:
ExtendedObjectCodec

public class ClientEntityCodec
extends Object
implements ExtendedObjectCodec

Author:
Franck WOLFF

Constructor Summary
ClientEntityCodec()
           
 
Method Summary
 boolean canDecode(ExtendedObjectInput in, String className)
           
 boolean canEncode(ExtendedObjectOutput out, Object v)
           
 void decode(ExtendedObjectInput in, Object v)
           
 void encode(ExtendedObjectOutput out, Object v)
           
 String getDecodedClassName(ExtendedObjectInput in, String className)
           
 String getEncodedClassName(ExtendedObjectOutput out, Object v)
           
 Object newInstance(ExtendedObjectInput in, String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientEntityCodec

public ClientEntityCodec()
Method Detail

canEncode

public boolean canEncode(ExtendedObjectOutput out,
                         Object v)
Specified by:
canEncode in interface ExtendedObjectCodec

getEncodedClassName

public String getEncodedClassName(ExtendedObjectOutput out,
                                  Object v)
Specified by:
getEncodedClassName in interface ExtendedObjectCodec

encode

public void encode(ExtendedObjectOutput out,
                   Object v)
            throws IOException,
                   IllegalAccessException,
                   InvocationTargetException
Specified by:
encode in interface ExtendedObjectCodec
Throws:
IOException
IllegalAccessException
InvocationTargetException

canDecode

public boolean canDecode(ExtendedObjectInput in,
                         String className)
                  throws ClassNotFoundException
Specified by:
canDecode in interface ExtendedObjectCodec
Throws:
ClassNotFoundException

getDecodedClassName

public String getDecodedClassName(ExtendedObjectInput in,
                                  String className)
Specified by:
getDecodedClassName in interface ExtendedObjectCodec

newInstance

public Object newInstance(ExtendedObjectInput in,
                          String className)
                   throws IOException,
                          ClassNotFoundException,
                          InstantiationException,
                          IllegalAccessException,
                          InvocationTargetException,
                          SecurityException,
                          NoSuchMethodException,
                          IOException
Specified by:
newInstance in interface ExtendedObjectCodec
Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
SecurityException
NoSuchMethodException

decode

public void decode(ExtendedObjectInput in,
                   Object v)
            throws IOException,
                   ClassNotFoundException,
                   IllegalAccessException,
                   InvocationTargetException
Specified by:
decode in interface ExtendedObjectCodec
Throws:
IOException
ClassNotFoundException
IllegalAccessException
InvocationTargetException