Package org.shoal.ha.cache.impl.util
Class SimpleSerializer
- java.lang.Object
-
- org.shoal.ha.cache.impl.util.SimpleSerializer
-
public class SimpleSerializer extends Object
- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description SimpleSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectdeserialize(ClassLoader loader, byte[] data, int offset)static StringdeserializeString(byte[] data, int offset)static voidserialize(ReplicationOutputStream ros, Object obj)static voidserializeString(ReplicationOutputStream ros, String str)
-
-
-
Method Detail
-
serializeString
public static void serializeString(ReplicationOutputStream ros, String str) throws IOException
- Throws:
IOException
-
serialize
public static void serialize(ReplicationOutputStream ros, Object obj) throws IOException
- Throws:
IOException
-
deserializeString
public static String deserializeString(byte[] data, int offset)
-
deserialize
public static Object deserialize(ClassLoader loader, byte[] data, int offset) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundExceptionIOException
-
-