com.hazelcast.nio.serialization.serializers
Class ArrayListSerializerHook.ArrayListStreamSerializer

java.lang.Object
  extended by com.hazelcast.nio.serialization.serializers.ArrayListSerializerHook.ArrayListStreamSerializer
All Implemented Interfaces:
Serializer, StreamSerializer<ArrayList>
Enclosing class:
ArrayListSerializerHook

public static class ArrayListSerializerHook.ArrayListStreamSerializer
extends Object
implements StreamSerializer<ArrayList>

The ArrayList serializer


Constructor Summary
ArrayListSerializerHook.ArrayListStreamSerializer()
           
 
Method Summary
 void destroy()
          Called when instance is shutting down.
 int getTypeId()
           
 ArrayList read(ObjectDataInput in)
          Reads object from objectDataInputStream
 void write(ObjectDataOutput out, ArrayList object)
          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

ArrayListSerializerHook.ArrayListStreamSerializer

public ArrayListSerializerHook.ArrayListStreamSerializer()
Method Detail

write

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

Specified by:
write in interface StreamSerializer<ArrayList>
Parameters:
out - ObjectDataOutput stream that object will be written to
object - that will be written to out
Throws:
IOException - in case of failure to write

read

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

Specified by:
read in interface StreamSerializer<ArrayList>
Parameters:
in - ObjectDataInput stream that object will read from
Returns:
read object
Throws:
IOException - in case of failure to read

getTypeId

public int getTypeId()
Specified by:
getTypeId in interface Serializer
Returns:
typeId of serializer

destroy

public void destroy()
Description copied from interface: Serializer
Called when instance is shutting down. It can be used to clear used resources.

Specified by:
destroy in interface Serializer


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