org.granite.spring.data
Class PageableCodec

java.lang.Object
  extended by org.granite.spring.data.PageableCodec
All Implemented Interfaces:
org.granite.messaging.jmf.codec.ExtendedObjectCodec

public class PageableCodec
extends Object
implements org.granite.messaging.jmf.codec.ExtendedObjectCodec

Author:
Franck WOLFF

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

Constructor Detail

PageableCodec

public PageableCodec()
Method Detail

canEncode

public boolean canEncode(org.granite.messaging.jmf.ExtendedObjectOutput out,
                         Object v)
Specified by:
canEncode in interface org.granite.messaging.jmf.codec.ExtendedObjectCodec

getEncodedClassName

public String getEncodedClassName(org.granite.messaging.jmf.ExtendedObjectOutput out,
                                  Object v)
Specified by:
getEncodedClassName in interface org.granite.messaging.jmf.codec.ExtendedObjectCodec

encode

public void encode(org.granite.messaging.jmf.ExtendedObjectOutput out,
                   Object v)
            throws IOException,
                   IllegalAccessException,
                   InvocationTargetException
Specified by:
encode in interface org.granite.messaging.jmf.codec.ExtendedObjectCodec
Throws:
IOException
IllegalAccessException
InvocationTargetException

canDecode

public boolean canDecode(org.granite.messaging.jmf.ExtendedObjectInput in,
                         String className)
                  throws ClassNotFoundException
Specified by:
canDecode in interface org.granite.messaging.jmf.codec.ExtendedObjectCodec
Throws:
ClassNotFoundException

getDecodedClassName

public String getDecodedClassName(org.granite.messaging.jmf.ExtendedObjectInput in,
                                  String className)
Specified by:
getDecodedClassName in interface org.granite.messaging.jmf.codec.ExtendedObjectCodec

newInstance

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

decode

public void decode(org.granite.messaging.jmf.ExtendedObjectInput in,
                   Object v)
            throws IOException,
                   ClassNotFoundException,
                   IllegalAccessException,
                   InvocationTargetException
Specified by:
decode in interface org.granite.messaging.jmf.codec.ExtendedObjectCodec
Throws:
IOException
ClassNotFoundException
IllegalAccessException
InvocationTargetException