org.granite.messaging.jmf.codec
Interface ExtendedObjectCodec

All Known Implementing Classes:
ClientEntityCodec

public interface ExtendedObjectCodec

Author:
Franck WOLFF

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)
           
 

Method Detail

canEncode

boolean canEncode(ExtendedObjectOutput out,
                  Object v)

getEncodedClassName

String getEncodedClassName(ExtendedObjectOutput out,
                           Object v)

encode

void encode(ExtendedObjectOutput out,
            Object v)
            throws IOException,
                   IllegalAccessException,
                   InvocationTargetException
Throws:
IOException
IllegalAccessException
InvocationTargetException

canDecode

boolean canDecode(ExtendedObjectInput in,
                  String className)
                  throws ClassNotFoundException
Throws:
ClassNotFoundException

getDecodedClassName

String getDecodedClassName(ExtendedObjectInput in,
                           String className)

newInstance

Object newInstance(ExtendedObjectInput in,
                   String className)
                   throws IOException,
                          ClassNotFoundException,
                          InstantiationException,
                          IllegalAccessException,
                          InvocationTargetException,
                          SecurityException,
                          NoSuchMethodException
Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
SecurityException
NoSuchMethodException

decode

void decode(ExtendedObjectInput in,
            Object v)
            throws IOException,
                   ClassNotFoundException,
                   IllegalAccessException,
                   InvocationTargetException
Throws:
IOException
ClassNotFoundException
IllegalAccessException
InvocationTargetException