com.hazelcast.nio.serialization
Class DefaultSerializers.ClassSerializer

java.lang.Object
  extended by com.hazelcast.nio.serialization.DefaultSerializers.ClassSerializer
All Implemented Interfaces:
Serializer, StreamSerializer<Class>
Enclosing class:
DefaultSerializers

public static final class DefaultSerializers.ClassSerializer
extends Object


Constructor Summary
DefaultSerializers.ClassSerializer()
           
 
Method Summary
 int getTypeId()
           
 Class read(ObjectDataInput in)
          Reads object from objectDataInputStream
 void write(ObjectDataOutput out, Class obj)
          This method writes object to ObjectDataOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSerializers.ClassSerializer

public DefaultSerializers.ClassSerializer()
Method Detail

getTypeId

public int getTypeId()
Returns:
typeId of serializer

read

public Class read(ObjectDataInput in)
           throws IOException
Description copied from interface: StreamSerializer
Reads object from objectDataInputStream

Parameters:
in - ObjectDataInput stream that object will read from
Returns:
read object
Throws:
IOException - in case of failure to read

write

public void write(ObjectDataOutput out,
                  Class obj)
           throws IOException
Description copied from interface: StreamSerializer
This method writes object to ObjectDataOutput

Parameters:
out - ObjectDataOutput stream that object will be written to
obj - that will be written to out
Throws:
IOException - in case of failure to write


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.