GigaSpaces XAP 7.0 API

org.openspaces.core.util
Class ThreadLocalMarshaller

java.lang.Object
  extended by org.openspaces.core.util.ThreadLocalMarshaller

public class ThreadLocalMarshaller
extends Object

Author:
kimchy

Constructor Summary
ThreadLocalMarshaller()
           
 
Method Summary
static Object objectFromByteBuffer(byte[] buffer)
          Creates an object from a byte buffer.
static byte[] objectToByteBuffer(Object obj)
          Serializes an object into a byte buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalMarshaller

public ThreadLocalMarshaller()
Method Detail

objectFromByteBuffer

public static Object objectFromByteBuffer(byte[] buffer)
                                   throws IOException,
                                          ClassNotFoundException
Creates an object from a byte buffer.

Throws:
IOException
ClassNotFoundException

objectToByteBuffer

public static byte[] objectToByteBuffer(Object obj)
                                 throws IOException
Serializes an object into a byte buffer. The object has to implement interface Serializable or Externalizable.

Throws:
IOException

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.