com.esotericsoftware.kryo.serialize
Class BigIntegerSerializer

java.lang.Object
  extended by com.esotericsoftware.kryo.Serializer
      extended by com.esotericsoftware.kryo.serialize.BigIntegerSerializer

public class BigIntegerSerializer
extends Serializer

Serializes instances of BigInteger.

Author:
Joe Jensen (joe.m.jensen@gmail.com)

Constructor Summary
BigIntegerSerializer()
           
 
Method Summary
 java.math.BigInteger readObjectData(java.nio.ByteBuffer buffer, java.lang.Class type)
          Reads an object from the buffer.
 void writeObjectData(java.nio.ByteBuffer buffer, java.lang.Object object)
          Writes the object to the buffer.
 
Methods inherited from class com.esotericsoftware.kryo.Serializer
isFinal, newInstance, readObject, setCanBeNull, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigIntegerSerializer

public BigIntegerSerializer()
Method Detail

readObjectData

public java.math.BigInteger readObjectData(java.nio.ByteBuffer buffer,
                                           java.lang.Class type)
Description copied from class: Serializer
Reads an object from the buffer.

Specified by:
readObjectData in class Serializer
Returns:
The deserialized object, never null.

writeObjectData

public void writeObjectData(java.nio.ByteBuffer buffer,
                            java.lang.Object object)
Description copied from class: Serializer
Writes the object to the buffer.

Specified by:
writeObjectData in class Serializer
object - Cannot be null.


Copyright © 2011. All Rights Reserved.