All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clickntap.tool.hessian.BigIntegerSerializerFactory Maven / Gradle / Ivy

There is a newer version: 1.30
Show newest version
package com.clickntap.tool.hessian;

import com.caucho.hessian.io.AbstractSerializerFactory;
import com.caucho.hessian.io.Deserializer;
import com.caucho.hessian.io.HessianProtocolException;
import com.caucho.hessian.io.Serializer;

import java.math.BigInteger;

public class BigIntegerSerializerFactory extends AbstractSerializerFactory {
    public Serializer getSerializer(Class cl) throws HessianProtocolException {
        if (BigInteger.class.isAssignableFrom(cl)) {
            return new BigIntegerSerializer();
        }
        return null;
    }

    public Deserializer getDeserializer(Class cl) throws HessianProtocolException {
        if (BigInteger.class.isAssignableFrom(cl)) {
            return new BigIntegerDeSerializer();
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy